Issue2851
Created on 2008-05-14 12:40 by mark, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg66817 - (view) | Author: Mark Summerfield (mark) * | Date: 2008-05-14 12:40 | |
The re module has the following flags (amongst others): re.X == re.VERBOSE re.S == re.DOTALL The short forms of both these flags are clearly taken from Perl, but they don't seem necessary for Python and are confusing since all the other short names start with the same letter as the long name, e.g., re.I == re.IGNORECASE and re.M == re.MULTILINE. Why not add re.V for re.VERBOSE and re.D for re.DOTALL and kill re.X and re.S and say a final farewell to Perl? |
|||
| msg66819 - (view) | Author: Guido van Rossum (gvanrossum) * ![]() |
Date: 2008-05-14 15:08 | |
Please keep them. They correspond to the (?x) and (?s) syntax that is supported inside the regex. Perl compatibility is a feature, not a bug for the re module. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:34 | admin | set | github: 47100 |
| 2008-05-14 15:09:10 | gvanrossum | set | status: open -> closed resolution: wont fix messages: + msg66819 nosy: + gvanrossum |
| 2008-05-14 12:40:47 | mark | create | |
