[Python-Dev] Revising RE docs (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 1 06:10:03 CEST 2005
- Previous message: [Python-Dev] Revising RE docs
- Next message: [Python-Dev] Revising RE docs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Stephen J. Turnbull wrote:
But you could have string objects (or a derivative) grow a "compiledregexp" attribute internally.
That would make the core dependent on the re module, which I think would be a bad idea.
Personally I like the way the compilation step is made at least somewhat explicit. Regular expressions are not strings; a string is just one way of representing a regular expression. There could potentially be other representations that compile to the same re object.
Greg
- Previous message: [Python-Dev] Revising RE docs
- Next message: [Python-Dev] Revising RE docs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]