]> granicus.if.org Git - python/commit
str_subtype_new, unicode_subtype_new:
authorTim Peters <tim.peters@gmail.com>
Wed, 12 Sep 2001 05:18:58 +0000 (05:18 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 12 Sep 2001 05:18:58 +0000 (05:18 +0000)
commitaf90b3e610212a4994962246875e5bfc5574dff6
tree241056a3295c441dc7ef56d2cd690af5f1287281
parent7a29bd58614da9fc478d7167ba918d92c2dcca7e
str_subtype_new, unicode_subtype_new:
+ These were leaving the hash fields at 0, which all string and unicode
  routines believe is a legitimate hash code.  As a result, hash() applied
  to str and unicode subclass instances always returned 0, which in turn
  confused dict operations, etc.
+ Changed local names "new"; no point to antagonizing C++ compilers.
Lib/test/test_descr.py
Objects/stringobject.c
Objects/unicodeobject.c