[ python-Bugs-1713999 ] Multiple re.compile flags cause error
SourceForge.net
noreply at sourceforge.net
Mon May 7 10:35:38 CEST 2007
Bugs item #1713999, was opened at 2007-05-07 02:05
Message generated for change (Comment added) made by gbrandl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1713999&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Regular Expressions
Group: Python 2.5
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Saul Spatz (saulspatz)
Assigned to: Gustavo Niemeyer (niemeyer)
Summary: Multiple re.compile flags cause error
Initial Comment:
The documentation for re.compile() shows that multiple flags are allowed, but
re.compile(r'.*', re.VERBOSE, re.DOTALL)
results in an error message that only two arguments are allowed and three were given.
I'm using python 2.5 with Windows XP Home edition.
----------------------------------------------------------------------
>Comment By: Georg Brandl (gbrandl)
Date: 2007-05-07 08:35
Message:
Logged In: YES
user_id=849994
Originator: NO
Closing as invalid.
----------------------------------------------------------------------
Comment By: Gabriel Genellina (gagenellina)
Date: 2007-05-07 05:10
Message:
Logged In: YES
user_id=479790
Originator: NO
Multiple flags must be ORed together: re.compile(r'.*', re.VERBOSE |
re.DOTALL)
>From the re module documentation at
http://docs.python.org/lib/node46.html: "Values can be any of the following
variables, combined using bitwise OR (the | operator)."
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1713999&group_id=5470
More information about the Python-bugs-list
mailing list