[stdlib-sig] Removing the deprecated sre module?

Alexandre Vassalotti alexandre at peadrop.com
Thu May 8 03:20:57 CEST 2008


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

-- Alexandre


More information about the stdlib-sig mailing list