Giovanni> I'm sure you were talking more generically, but as for this
    Giovanni> specific case (which is indeed very common), I always wondered
    Giovanni> why re couldn't export wrappers around bound methods of the
    Giovanni> last match object, so to allow:

    Giovanni> if re.match(...):
    Giovanni>    x,y = re.group(1), re.group(2)
    Giovanni> elif re.match(..):
    Giovanni>    ...

Because then the re module wouldn't be thread safe.

Skip
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to