]> granicus.if.org Git - python/commit
- changed hash calculation for unicode strings. the new
authorFredrik Lundh <fredrik@pythonware.com>
Mon, 10 Jul 2000 18:27:47 +0000 (18:27 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Mon, 10 Jul 2000 18:27:47 +0000 (18:27 +0000)
commitdde61644024185891e1c41d6f5de29f8780b1cff
tree729c72530031a4394196f53a802132cc87954d1c
parent417c489defd33ceb4a3cb76efaf4975ee886221e
- changed hash calculation for unicode strings.  the new
  value is calculated from the character values, in a way
  that makes sure an 8-bit ASCII string and a unicode string
  with the same contents get the same hash value.

  (as a side effect, this also works for ISO Latin 1 strings).

  for more details, see the python-dev discussion.
Objects/unicodeobject.c