Message39192
Logged In: YES
user_id=86307
I noticed recently that the lastindex attribute of match objects
is now documented, so I believe that the lastindex problem I
described in my March 8 posting needs to be fixed. Simply,
lastindex may claim that a group matched when in fact it
didn't (because lastindex does not get updated when
lastmark is reset to a lower value):
>>> m = sre.match('(\d)?\d\d', '12')
>>> m.groups()
(None,)
>>> m.lastindex
1
|
|
Date |
User |
Action |
Args |
2007-08-23 15:11:30 | admin | link | issue527371 messages |
2007-08-23 15:11:30 | admin | create | |
|