Author mrabarnett
Recipients akuchling, amaury.forgeotdarc, jimjjewett, mark, mrabarnett, pitrou, rsc, timehorse
Date 2008-09-24.14:28:02
SpamBayes Score 1.91147e-07
Marked as misclassified No
Message-id <1222266483.98.0.265085104749.issue2636@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-09-24 14:28:04mrabarnettsetrecipients: + mrabarnett, akuchling, jimjjewett, amaury.forgeotdarc, pitrou, rsc, timehorse, mark
2008-09-24 14:28:03mrabarnettsetmessageid: <1222266483.98.0.265085104749.issue2636@psf.upfronthosting.co.za>
2008-09-24 14:28:03mrabarnettlinkissue2636 messages
2008-09-24 14:28:02mrabarnettcreate