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

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Aug 8 04:43:35 CEST 2004


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4118/Misc
Modified Files:
	NEWS 
Log Message:
Also deprecated the old Tester class, which is no longer used by anything
except internal tests.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1078
retrieving revision 1.1079
diff -C2 -d -r1.1078 -r1.1079
*** NEWS	7 Aug 2004 19:20:05 -0000	1.1078
--- NEWS	8 Aug 2004 02:43:33 -0000	1.1079
***************
*** 13,21 ****
 -----------------
 
! 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
--- 13,21 ----
 -----------------
 
! - 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
***************
*** 25,28 ****
--- 25,43 ----
 -------
 
+ - doctest refactoring continued. See the docs for details. As part of
+ this effort, some old and little- (never?) used features are now
+ deprecated: the Tester class, the module is_private() function, and the
+ isprivate argument to testmod(). The Tester class supplied a feeble
+ "by hand" way to combine multiple doctests, if you knew exactly what
+ you were doing. The newer doctest features for unittest integration
+ already did a better job of that, are stronger now than ever, and the
+ new DocTestRunner class is a saner foundation if you want to do it by
+ hand. The "private name" filtering gimmick was a mistake from the
+ start, and testmod() changed long ago to ignore it by default. If
+ you want to filter out tests, the new DocTestFinder class can be used
+ to return a list of all doctests, and you can filter that list by
+ any computable criteria before passing it to a DocTestRunner instance.
+ 
+ 
 Tools/Demos
 -----------


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /