[Python-3000] raw strings and \u

Neal Norwitz nnorwitz at gmail.com
Sat Apr 5 08:18:49 CEST 2008


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 generating:
  SyntaxError: (unicode error) truncated \uXXXX

Is that correct?  Or should the \u be translated literally?

n


More information about the Python-3000 mailing list