[Python-checkins] python/dist/src/Misc NEWS,1.1077,1.1078

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Sat Aug 7 21:20:08 CEST 2004


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9225/Misc

Modified Files:
	NEWS 
Log Message:
Subclasses of string can no longer be interned.  The semantics of
interning were not clear here -- a subclass could be mutable, for
example -- and had bugs.  Explicitly interning a subclass of string
via intern() will raise a TypeError.  Internal operations that attempt
to intern a string subclass will have no effect.

Added a few tests to test_builtin that includes the old buggy code and
verifies that calls like PyObject_SetAttr() don't fail.  Perhaps these
tests should have gone in test_string.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1077
retrieving revision 1.1078
diff -C2 -d -r1.1077 -r1.1078
*** NEWS	7 Aug 2004 14:03:33 -0000	1.1077
--- NEWS	7 Aug 2004 19:20:05 -0000	1.1078
***************
*** 13,16 ****
--- 13,22 ----
  -----------------
  
+ Subclasses of string can no longer be interned.  The semantics of
+ interning were not clear here -- a subclass could be mutable, for
+ example -- and had bugs.  Explicitly interning a subclass of string
+ via intern() will raise a TypeError.  Internal operations that attempt
+ to intern a string subclass will have no effect.
+ 
  Extension modules
  -----------------



More information about the Python-checkins mailing list