Bugs item #1713999, was opened at 2007-05-06 23:05 Message generated for change (Comment added) made by gagenellina 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: Open Resolution: None 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: Gabriel Genellina (gagenellina) Date: 2007-05-07 02: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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com