[Python-Dev] 2.3 goals

Guido van Rossum guido@python.org
2002年4月09日 13:49:12 -0400


> Mention as an implementation detail should not cause something to be
> kept around. I don't recall "sre" being anything other than an
> implementation detail, either, so I'm not convinced that name needs to
> be maintained.

There *are* people who import sre or pre because they think they have
a preference. I propose to lose PCRE, but keep sre and pre as
(deprecated) aliases for re. I.e. e.g.
 # pre.py
 import warning as _warning
 _warning.warn(..., "please use re, not pre")
 from re import *
And ditto for sre. (Except maybe sre is an implementation artefact that
may be harder to get rid of -- I'm not in a hurry there.)
--Guido van Rossum (home page: http://www.python.org/~guido/)

AltStyle によって変換されたページ (->オリジナル) /