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/007475.html below:

[Python-Dev] UTF-16 code point comparison

[Python-Dev] UTF-16 code point comparison [Python-Dev] UTF-16 code point comparisonFredrik Lundh Fredrik Lundh" <effbot@telia.com
Thu, 27 Jul 2000 09:44:30 +0200
finn bock wrote:
> Java (and JPython) compares the 16-bit characters numericly which =
result in:
>=20
>   JPython 1.1+08 on java1.3.0 (JIT: null)
>   Copyright (C) 1997-1999 Corporation for National Research =
Initiatives
>   >>> print u'\ue000' < u'\ud800'
>   0
>   >>> print ord(u'\ue000') < ord(u'\ud800')
>   0
>   >>>
>=20
> I don't think I can come up with a solution that allow JPython to =
emulate
> CPython on this type of comparison.

since we don't really support surrogates (or anything else
related to 32-bit unicode) anywhere else, I'd rather change
CPython to emulate JPython here.

(just #ifdef out the neat stuff, and don't switch it on again
before we've sorted all other 32-bit unicode issues...)

</F>




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