Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue26475

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Misleading debugging output for verbose regular expressions
Type:behaviorStage:resolved
Components:Regular ExpressionsVersions:Python 3.6, Python 3.5, Python 2.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: serhiy.storchakaNosy List: ezio.melotti, mrabarnett, python-dev, serhiy.storchaka
Priority:normalKeywords:patch

Created on2016-03-03 08:19 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
re_verbose_debug.patchserhiy.storchaka,2016-03-03 08:19review
Messages (2)
msg261148 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)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)(Python triager)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
DateUserActionArgs
2022-04-11 14:58:28adminsetgithub: 70662
2016-03-06 07:18:28serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2016-03-06 07:18:07python-devsetnosy: +python-dev
messages: +msg261236
2016-03-03 08:19:16serhiy.storchakacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp