[Python-Dev] Go \x yourself (original) (raw)
Gordon McMillan gmcm@hypernet.com
Thu, 3 Aug 2000 09:05:07 -0400
- Previous message: [Python-Dev] Go \x yourself
- Next message: [Python-Dev] Go \x yourself
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Tim sez]
The new rule is ... ... an \x escape is of the form
\xhh where h is a hex digit. That's it.
>>> "\x123465" # \x12 -> \022, "3465" left alone '\0223465'
Hooray! I got bit often enough by that one ('e') that I forced myself to always use the wholly unnatural octal.
god-gave-us-sixteen-fingers-for-a-reason-ly y'rs
- Gordon
- Previous message: [Python-Dev] Go \x yourself
- Next message: [Python-Dev] Go \x yourself
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]