[Python-checkins] python/dist/src/Misc NEWS,1.767,1.768

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2003年5月17日 08:57:02 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv31645/Misc
Modified Files:
	NEWS 
Log Message:
datetime.timedelta is now subclassable in Python. The new test shows
one good use: a subclass adding a method to express the duration as
a number of hours (or minutes, or whatever else you want to add). The
native breakdown into days+seconds+us is often clumsy. Incidentally
moved a large chunk of object-initialization code closer to the top of
the file, to avoid worse forward-reference trickery.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.767
retrieving revision 1.768
diff -C2 -d -r1.767 -r1.768
*** NEWS	17 May 2003 05:55:18 -0000	1.767
--- NEWS	17 May 2003 15:57:00 -0000	1.768
***************
*** 27,32 ****
 -----------------
 
! - The datetime.datetime and datetime.time classes are now properly
! subclassable.
 
 - _tkinter.{get|set}busywaitinterval was added.
--- 27,32 ----
 -----------------
 
! - The datetime module classes datetime, time, and timedelta are now
! properly subclassable.
 
 - _tkinter.{get|set}busywaitinterval was added.

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