Author serhiy.storchaka
Recipients serhiy.storchaka, terry.reedy
Date 2020-11-21.15:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In Lib/idlelib/ there is a code which decomposes re.error and reports error message, pattern, and position of error.

The problem is that that code does not match the structure of re.error. It takes args[0] as error message, and args[1] (if specified) as position in the pattern. But actually re.error always sets args[0] to formatted error message, and args has only one item. So some code in IDLE is dead.

Currently reported:

   Error: bad escape \z at position 1
   Pattern: a\z


   Error: bad escape \z
   Pattern: a\z
   Offset: 1
Date User Action Args
2020-11-21 15:19:37serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy
2020-11-21 15:19:37serhiy.storchakasetmessageid: <>
2020-11-21 15:19:37serhiy.storchakalinkissue42426 messages
2020-11-21 15:19:36serhiy.storchakacreate