Message261148
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) |
|
Date |
User |
Action |
Args |
2016-03-03 08:19:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ezio.melotti, mrabarnett |
2016-03-03 08:19:16 | serhiy.storchaka | set | messageid: <1456993156.69.0.718662373051.issue26475@psf.upfronthosting.co.za> |
2016-03-03 08:19:16 | serhiy.storchaka | link | issue26475 messages |
2016-03-03 08:19:15 | serhiy.storchaka | create | |
|