[Python-Dev] Re: sre.py backward compatibility and PEP 291 (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Tue Aug 24 23:05:24 CEST 2004


Barry wrote:

PEP 291 says that sre.py needs to be backward compatible with Python 2.1. sre.py says:

# this module works under 1.5.2 and later. don't use string methods import string Which is it?

Martin changed the PEP last week (or so), but forgot to remove the comment.

Note that you can remove some code from _sre.c as well (see join_list, and perhaps other places that checks for >= 1.6).

cheers /F



More information about the Python-Dev mailing list