[Python-checkins] r54825 - in python/trunk: Lib/test/test_descr.py Misc/NEWS Objects/typeobject.c (original) (raw)

neal.norwitz python-checkins at python.org
Sat Apr 14 07:25:58 CEST 2007


Author: neal.norwitz Date: Sat Apr 14 07:25:50 2007 New Revision: 54825

Modified: python/trunk/Lib/test/test_descr.py python/trunk/Misc/NEWS python/trunk/Objects/typeobject.c Log: When slots are set to a unicode string, make it work the same as setting a plain string, ie don't expand to single letter identifiers.

Modified: python/trunk/Lib/test/test_descr.py

--- python/trunk/Lib/test/test_descr.py (original) +++ python/trunk/Lib/test/test_descr.py Sat Apr 14 07:25:50 2007 @@ -1225,13 +1225,29 @@ raise TestFailed, "[''] slots not caught" class C(object): slots = ["a", "a_b", "_a", "A0123456789Z"]

Modified: python/trunk/Misc/NEWS

--- python/trunk/Misc/NEWS (original) +++ python/trunk/Misc/NEWS Sat Apr 14 07:25:50 2007 @@ -12,6 +12,9 @@ Core and builtins

+- When slots are set to a unicode string, make it work the same as

Modified: python/trunk/Objects/typeobject.c

--- python/trunk/Objects/typeobject.c (original) +++ python/trunk/Objects/typeobject.c Sat Apr 14 07:25:50 2007 @@ -1816,7 +1816,7 @@ /* Have slots */

     /* Make it into a tuple */


More information about the Python-checkins mailing list