[Python-Dev] Re: sre.py backward compatibility and PEP 291

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant