Message73714
Comparing item 2 and item 3, I think that item 3 is the Pythonic choice
and item 2 is a bad idea.
Item 4: back-references in the pattern are like \1 and (?P=name), not
\g<1> or \g<name>, and in the replacement string are like \g<1> and
\g<name>, not \1 (or (?P=name)). I'd like to suggest that
back-references in the pattern also include \g<1> and \g<name> and
\g<-1> for relative back-references. Interestingly, Perl names groups
with (?<name>...) whereas Python uses (?P<name>...). A permissible
alternative? |
|
Date |
User |
Action |
Args |
2008-09-24 14:28:04 | mrabarnett | set | recipients:
+ mrabarnett, akuchling, jimjjewett, amaury.forgeotdarc, pitrou, rsc, timehorse, mark |
2008-09-24 14:28:03 | mrabarnett | set | messageid: <1222266483.98.0.265085104749.issue2636@psf.upfronthosting.co.za> |
2008-09-24 14:28:03 | mrabarnett | link | issue2636 messages |
2008-09-24 14:28:02 | mrabarnett | create | |
|