Re: [Python-3000] raw strings and \u

2008-04-05 Thread Martin v. Löwis
> I just checked in r62163 with this change: > -rc = os.system(r"ml64 -c -Foms\uptable.obj ms\uptable.asm") > +rc = os.system("ml64 -c -Foms\\uptable.obj ms\\uptable.asm") > > What should happen with raw unicode strings that contain a \u? The > old code above was generatin

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Amaury Forgeot d'Arc
Martin v. Löwis wrote: > > I just checked in r62163 with this change: > > -rc = os.system(r"ml64 -c -Foms\uptable.obj ms\uptable.asm") > > +rc = os.system("ml64 -c -Foms\\uptable.obj ms\\uptable.asm") > > > > What should happen with raw unicode strings that contain a \u?

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Benjamin Peterson
On Sat, Apr 5, 2008 at 7:25 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > Martin v. Löwis wrote: > > > I just checked in r62163 with this change: > > > -rc = os.system(r"ml64 -c -Foms\uptable.obj > ms\uptable.asm") > > > +rc = os.system("ml64 -c -Foms\\uptable.obj

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Guido van Rossum
On Fri, Apr 4, 2008 at 11:18 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > I just checked in r62163 with this change: > -rc = os.system(r"ml64 -c -Foms\uptable.obj ms\uptable.asm") > +rc = os.system("ml64 -c -Foms\\uptable.obj ms\\uptable.asm") > > What should happen with

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Benjamin Peterson
On Sat, Apr 5, 2008 at 9:44 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Fri, Apr 4, 2008 at 11:18 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > I just checked in r62163 with this change: > > -rc = os.system(r"ml64 -c -Foms\uptable.obj > ms\uptable.asm") > > +rc

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Guido van Rossum
Thanks -- that was quick! On Sat, Apr 5, 2008 at 7:50 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > > > > On Sat, Apr 5, 2008 at 9:44 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > > On Fri, Apr 4, 2008 at 11:18 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > > I just checked in r621

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Guido van Rossum
:-) So did the broken version make it into the 3.0a4 release, or did you break it after the release? On Sat, Apr 5, 2008 at 7:59 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > > On Sat, Apr 5, 2008 at 9:58 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Thanks -- that was quick! > Well,

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Benjamin Peterson
On Sat, Apr 5, 2008 at 9:58 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Thanks -- that was quick! Well, I was the guilty party... > > > On Sat, Apr 5, 2008 at 7:50 AM, Benjamin Peterson > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > On Sat, Apr 5, 2008 at 9:44 AM, Guido van Rossum <[EMAI

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Benjamin Peterson
On Sat, Apr 5, 2008 at 10:00 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > :-) > > So did the broken version make it into the 3.0a4 release, or did you > break it after the release? > Missed it by 7 revisions! I'm going to add a test for that, though, so it doesn't happen again. > > > On Sat,

Re: [Python-3000] raw strings and \u

2008-04-05 Thread John Millikin
If this is the case, could the regex library be modified to support \u and \U escapes as suggested by Martin v. Löwis[1]? Otherwise, the only way to use non-ASCII characters in a regex will be to avoid raw strings. [1] http://mail.python.org/pipermail/python-dev/2007-May/073074.html __

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Martin v. Löwis
John Millikin wrote: > If this is the case, could the regex library be modified to support \u > and \U escapes +1 (not surprisingly). Would you like to work on a patch? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.pyt

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Neal Norwitz
On Sat, Apr 5, 2008 at 8:03 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Sat, Apr 5, 2008 at 10:00 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > :-) > > > > So did the broken version make it into the 3.0a4 release, or did you > > break it after the release? > > > Missed it by 7 revis

Re: [Python-3000] raw strings and \u

2008-04-05 Thread Benjamin Peterson
On Sat, Apr 5, 2008 at 12:58 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On Sat, Apr 5, 2008 at 8:03 AM, Benjamin Peterson > <[EMAIL PROTECTED]> wrote: > > On Sat, Apr 5, 2008 at 10:00 AM, Guido van Rossum <[EMAIL PROTECTED]> > wrote: > > > :-) > > > > > > So did the broken version make it into