A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005473.html below:

[Python-Dev] Re: \ud800 crashes interpreter (PR#384)

[Python-Dev] Re: \ud800 crashes interpreter (PR#384) [Python-Dev] Re: \ud800 crashes interpreter (PR#384)Bill Tutt billtut@microsoft.com
Wed, 5 Jul 2000 08:26:22 -0700
> MAL wrote:
> ... I wonder why compiling "print u'\uD800'" causes the
> hash value to be computed ...

That's an easy one. Com_addconst() (or something it calls) calls
PyObject_Hash() during the compilation process.

Re: UTF-8
There's no reason why you can't support surrogates in UTF-8, while still not
supporting them in slice notation.
It's certainly the easiest way to fix the problem. 

Bill



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