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/2014-February/132227.html below:

[Python-Dev] _PyUnicode_CheckConsistency() too strict?

[Python-Dev] _PyUnicode_CheckConsistency() too strict? [Python-Dev] _PyUnicode_CheckConsistency() too strict?Antoine Pitrou solipsis at pitrou.net
Mon Feb 3 18:35:39 CET 2014
On Mon, 03 Feb 2014 16:10:03 +0000
Phil Thompson <phil at riverbankcomputing.com> wrote:
> 
> Why is a Latin-1 string considered inconsistent just because it doesn't 
> happen to contain any characters in the range 128-255?

Because as Victor said, it allows for some optimization shortcuts (e.g.
a non-ASCII latin1 string cannot be equal to an ASCII string - no need
for a memcmp).

Regards

Antoine.


More information about the Python-Dev mailing list

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