
barry at python
Aug 24, 2004, 12:42 PM
Post #1 of 4
(732 views)
Permalink
|
|
sre.py backward compatibility and PEP 291
|
|
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
|