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

Barry Warsaw barry at python.org
Tue Aug 24 21:42:58 CEST 2004


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? Raymond has seen some circular reference problems between my PEP 292 string.py patch and re.py (really, by way of sre.py and friends). Even though I haven't seen the same problems, I'd like to avoid any direct circular references by changing the few string module function calls in sre*.py to string methods. But the comment above stopped me, until I read PEP 291.

The PEP should be the definitive answer, and I'm willing to string-meth-ify sre*.py, if there are no objections.

out-posting-phillip-ly y'rs, -Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20040824/b392f5ba/attachment.pgp



More information about the Python-Dev mailing list