[stdlib-sig] Removing the deprecated sre module?
Brett Cannon
brett at python.org
Thu May 8 04:48:41 CEST 2008
On Wed, May 7, 2008 at 6:20 PM, Alexandre Vassalotti
<alexandre at peadrop.com> wrote:
> On Wed, May 7, 2008 at 7:12 PM, Benjamin Peterson
> <musiccomposition at gmail.com> wrote:
> > On Mon, May 5, 2008 at 5:35 PM, Alexandre Vassalotti
> > <alexandre at peadrop.com> wrote:
> >
> > > Currently, the sre module is just a stub that imports the re module.
> > > So, I don't think removing in Py3k will cause any problem.
> >
> > Is this just the sre.py module? Does it include sre_constants,
> > sre_compile, and sre_parse?
> >
>
> I was talking only about the sre module stub, not the other sre_*
> modules. These are still needed (e.g., sre_constants is used to
> generate the Modules/sre_constants.h header).
>
> Anyway, would it be a good idea to move the re and sre_* modules into
> their own package?
>
> re -> re.__init__
> sre_compile -> re._compile
> sre_constants -> re._constants
> sre_parse -> re._parse
That's a possibility, although this will have to go past python-dev at
this point since the PEP has already been accepted.
-Brett
More information about the stdlib-sig
mailing list