> 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