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 <1605971977.28.0.341326633768.issue42426@roundup.psfhosted.org>
In-reply-to
Content
In Lib/idlelib/searchengine.py 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

Expected:

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