from a lurker's perspective, why not just implement str.compile() as
new method, and methods where it's relevant support it's result as
argument ? That's a small change in additions, and the other methods
in the normal case just do the same as now. It's also pretty clear
what things like "whatever".replace("regex".compile(), "otherstring")
should do in that case.
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
- Re: [Python-ideas] Give regex operations mor... Chris Angelico
- Re: [Python-ideas] Give regex operations mor... Greg Ewing
- Re: [Python-ideas] Give regex operations mor... Oleg Broytman
- Re: [Python-ideas] Give regex operations mor... Steven D'Aprano
- Re: [Python-ideas] Give regex operations mor... Brendan Barnwell
- Re: [Python-ideas] Give regex operations mor... Steven D'Aprano
- Re: [Python-ideas] Give regex operations mor... Oleg Broytman
- Re: [Python-ideas] Give regex operations mor... Greg Ewing
- Re: [Python-ideas] Give regex operations mor... Franklin? Lee
- Re: [Python-ideas] Give regex operations mor... Michael Selik
- Re: [Python-ideas] Give regex operations mor... Jacco van Dorp
- Re: [Python-ideas] Give regex operations mor... Michel Desmoulin
- Re: [Python-ideas] Give regex operations more sugar Chris Angelico
- Re: [Python-ideas] Give regex operations more sugar MRAB
- Re: [Python-ideas] Give regex operations more su... Chris Angelico
- Re: [Python-ideas] Give regex operations more su... Eric Fahlgren
- Re: [Python-ideas] Give regex operations more sugar Greg Ewing
- Re: [Python-ideas] Give regex operations more su... Franklin? Lee
- Re: [Python-ideas] Give regex operations more sugar David Mertz
- Re: [Python-ideas] Give regex operations more sugar Michel Desmoulin
- Re: [Python-ideas] Give regex operations more sugar Greg Ewing
