[Python-ideas] Experiment: Adding "re" to string objects.

Antoine Pitrou solipsis at pitrou.net
Mon Jul 20 00:36:25 CEST 2009


Nick Coghlan <ncoghlan at ...> writes:
> 
> The idea of a helper class in the re module to
> simplify that idiom isn't a silly one, even if I would object
> strenuously to the idea of building regex support directly into the
> basic string types.

My point is that simplifying that idiom (only by a very slight amount, by the
way) is not worth the cognitive overhead of making the re API more complicated
and less regular. There should be one obvious way to do it, after all.






More information about the Python-ideas mailing list