Steven D'Aprano wrote:
Well there you go -- why on earth would you prohibit None as a dictionary key??? That's a serious failure.


roentgen 1% python
Python 2.5 (r25:51908, Sep 20 2006, 17:36:21) [GCC 3.4.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
py> hash(None)
135543872


mbi136-176 98% /usr/bin/python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
py> hash(None)
2030240



That's why. Read the whole thread. You are one of the abrasive ones.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to