hash(unicode(string)) == hash(string) sometimes
Skip Montanaro
skip at pobox.com
Thu Mar 7 07:02:13 EST 2002
>>>>> "Martin" == Martin v Loewis <martin at v.loewis.de> writes:
Martin> sjmachin at lexicon.net (John Machin) writes:
>> ... making hash(string) always do hash(unicode(string)) ...
Martin> The real solution, IMO, is to never change the system default
Martin> encoding.
Veering off on a tangent, the question of raw_input failing for latin-1
input came up on python-help in the last day. The suggested solution was to
change the system default encoding. If not that, then what?
--
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)
More information about the Python-list
mailing list