[Python-ideas] Exposing regular expression bytecode

Andrew Barnert abarnert at yahoo.com
Tue Feb 16 01:15:56 EST 2016


Isn't the regex module intended to replace the re module "one of these days", once it's actually whipped into stdlibable shape? If so, it seems like it would be better to help Matthew finish that than to add to the re module.

Sent from my iPhone

> On Feb 15, 2016, at 22:04, Jonathan Goble <jcgoble3 at gmail.com> wrote:
> 
> Hello? Anyone? I'd really like to see this idea move forward, but I
> need some comments for that.
> 
> Original message:
> https://mail.python.org/pipermail/python-ideas/2016-February/038488.html
> 
>> On Mon, Feb 15, 2016 at 2:47 AM, Jonathan Goble <jcgoble3 at gmail.com> wrote:
>>> On Mon, Feb 15, 2016 at 2:26 AM, Wes Turner <wes.turner at gmail.com> wrote:
>>> the new 'regex' module (with a re compatability mode and unicode) may be the
>>> place to find/add more debugging syms
>> 
>> Thanks, but I'm already well aware of that module, as I'm already
>> using it for another project of mine that requires some of its new
>> features. But this proposal, I think, is simple enough that it would
>> be worth doing for the built-in 're' modules. Also, the things that
>> implementing it would enable, such as optimizers and especially
>> debuggers, would be available to a much larger number of people if the
>> built-in module supported them.
>> 
>> I'm not really asking for much; just take an array already in the
>> struct that represents the object, expose it as a public attribute,
>> and write a simple 'dis'-like module to enable low-level programmatic
>> analysis. Once that's available, third parties are likely to build on
>> it from there; that's much less likely to happen if such tools only
>> worked on a different regex module (albeit a great one) from PyPI and
>> not on the built-in version.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/


More information about the Python-ideas mailing list