New submission from Alexander Schmolck :
In certain cases a zero-width /Z match that should be replaced isn't.
An example might help:
re.compile('(?m)(?P[
\t]+\r*$)|(?P(?<=[^\n])\Z)').subn(lambda m:next('<'+k+'>' for
k,v in m.groupdict().items
Alexander Schmolck <[EMAIL PROTECTED]> added the comment:
Ah, well nice to see this finally going somewhere, although I'm a bit
puzzled as to why my patch was "clearly not implemented" :)
Andy, wrt. to your points:
1. Yes, but see below.
2. Are you sure using i