[Python-Dev] Switching re and sre
amk at amk.ca
Wed Aug 31 14:23:34 CEST 2005
FYI: In a discussion on the Python security response list, Guido
suggested that the sre.py and re.py modules should be switched.
Currently re.py just imports the contents of sre.py -- once it
supported both sre and the PCRE-based pre.py -- and sre.py contains
the actual code.
Now that pre.py is gone, we can move the actual code into re.py and
make sre.py just import re.py, so that any user code that actually
imports sre will still work. I'll make this change today.
More information about the Python-Dev