[Python-ideas] Raw strings return compiled regexps

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 15 00:55:23 CET 2007

Neil Toronto wrote:

> What if they just returned regular expression objects?

That would force the re module to be part of the core,
which would not be a good thing.

Also, raw strings are good for more than just regexps.
The fact that there are a few things that they're *not*
good for doesn't mean they should be restricted to

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+

More information about the Python-ideas mailing list