A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/007917.html below:

[Python-Dev] Go \x yourself

[Python-Dev] Go \x yourself [Python-Dev] Go \x yourselfKa-Ping Yee ping@lfw.org
Fri, 4 Aug 2000 01:38:12 -0700 (PDT)
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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4