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/2003-December/040845.html below:

[Python-Dev] Re: test_unicode_file failing on Mac OS X

[Python-Dev] Re: test_unicode_file failing on Mac OS X [Python-Dev] Re: test_unicode_file failing on Mac OS XMartin v. Löwis martin at v.loewis.de
Tue Dec 9 14:51:45 EST 2003
Scott David Daniels <Scott.Daniels at Acm.Org> writes:

> Could we perhaps use a comparison that, in effect, did:
> 
>      def uni_equal(first, second):
>          if first == second:
>              return True
>          return first.normalize() == second.normalize()
> 
> That is, take advantage of the fact that normalization is often
> unnecessary for "trivial" reasons.

It also affects hashing, if Unicode objects are used as dictionary
keys. Objects that compare equal need to hash equal.

Regards,
Martin


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