New submission from Alexander Schmolck a.schmolck+...@gmail.com:
In certain cases a zero-width /Z match that should be replaced isn't.
An example might help:
re.compile('(?m)(?Ptrailing_ws[
\t]+\r*$)|(?Pno_final_newline(?=[^\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 inspect.ismethod is an improvement