[Python-Dev] Go \x yourself (original) (raw)
Ka-Ping Yee ping@lfw.org
Fri, 4 Aug 2000 01:38:12 -0700 (PDT)
- Previous message: [Python-Dev] Go \x yourself
- Next message: [Python-Dev] Go \x yourself
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 3 Aug 2000, Tim Peters wrote:
>>> "\x123465" # \x12 -> \022, "3456" left alone '\0223456' >>> "\x65" 'e' >>> "\x1" ValueError >>> "\x\x" ValueError >>>
I'm quite certain that this should be a SyntaxError, not a ValueError:
>>> "\x1"
SyntaxError: two hex digits are required after \x
>>> "\x\x"
SyntaxError: two hex digits are required after \x
Otherwise, +1. Sounds great.
-- ?!ng
- Previous message: [Python-Dev] Go \x yourself
- Next message: [Python-Dev] Go \x yourself
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]