
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2016-03-03 08:19 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| re_verbose_debug.patch | serhiy.storchaka,2016-03-03 08:19 | review | ||
| Messages (2) | |||
|---|---|---|---|
| msg261148 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2016-03-03 08:19 | |
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 32LITERAL 97LITERAL 97re.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 97re.compile(' (?x)a', re.VERBOSE|re.DEBUG) | |||
| msg261236 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2016-03-06 07:18 | |
New changeset910d0256601f by Serhiy Storchaka in branch '3.5':Issue#26475: Fixed debugging output for regular expressions with the (?x) flag.https://hg.python.org/cpython/rev/910d0256601fNew changesetb8928725e8cc by Serhiy Storchaka in branch '2.7':Issue#26475: Fixed debugging output for regular expressions with the (?x) flag.https://hg.python.org/cpython/rev/b8928725e8ccNew changeset37cdbe0a16a4 by Serhiy Storchaka in branch 'default':Issue#26475: Fixed debugging output for regular expressions with the (?x) flag.https://hg.python.org/cpython/rev/37cdbe0a16a4 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:28 | admin | set | github: 70662 |
| 2016-03-06 07:18:28 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2016-03-06 07:18:07 | python-dev | set | nosy: +python-dev messages: +msg261236 |
| 2016-03-03 08:19:16 | serhiy.storchaka | create | |