(s)re module code break

Peter Schneider-Kamp petersc at stud.ntnu.no
Tue Jul 4 17:57:39 EDT 2000


I just noticed an issue with the new re module. Maybe
it is old stuff, I don't know. Just to be sure:

using re.compile yields a SRE_Pattern object
(as of 2.0b1) whose method demands 3 arguments.

There is a lot of code which lives happily
just supplying 2 arguments and having count
default to 0 (until 1.6a2).

I added a 0 as third parameter and my program
once again ran happily.

Does anyone know if this behaviour of sre will persist?

worried-ly y'rs
Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list