This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, mrabarnett, serhiy.storchaka
Date 2016-03-03.08:19:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456993156.69.0.718662373051.issue26475@psf.upfronthosting.co.za>
In-reply-to
Content
When the verbose mode is switched on by using the inline (?x) flag instead of re.VERBOSE argument, the debugging output is duplicated: once for non-verbose mode and then for verbose mode.

>>> import re
>>> re.compile(r' (?x)a', re.DEBUG)
LITERAL 32
LITERAL 97
LITERAL 97
re.compile(' (?x)a', re.VERBOSE|re.DEBUG)

Proposed patch makes the parser to produce only final output for verbose mode.

>>> re.compile(r' (?x)a', re.DEBUG)
LITERAL 97
re.compile(' (?x)a', re.VERBOSE|re.DEBUG)
History
Date User Action Args
2016-03-03 08:19:16serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett
2016-03-03 08:19:16serhiy.storchakasetmessageid: <1456993156.69.0.718662373051.issue26475@psf.upfronthosting.co.za>
2016-03-03 08:19:16serhiy.storchakalinkissue26475 messages
2016-03-03 08:19:15serhiy.storchakacreate