[Python-checkins] python/dist/src/Misc NEWS,1.592,1.593
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 02 Jan 2003 13:28:10 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv18654/python/Misc
Modified Files:
NEWS
Log Message:
The tzinfo methods utcoffset() and dst() must return a timedelta object
(or None) now. In 2.3a1 they could also return an int or long, but that
was an unhelpfully redundant leftover from an earlier version wherein
they couldn't return a timedelta. TOOWTDI.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.592
retrieving revision 1.593
diff -C2 -d -r1.592 -r1.593
*** NEWS 2 Jan 2003 20:51:05 -0000 1.592
--- NEWS 2 Jan 2003 21:28:07 -0000 1.593
***************
*** 28,34 ****
In dt.asdatetime(tz), if tz.utcoffset(dt) returns a duration,
! ValueError is raised of tz.dst(dt) returns None (2.3a1 treated it
as 0 instead).
!
Library
-------
--- 28,39 ----
In dt.asdatetime(tz), if tz.utcoffset(dt) returns a duration,
! ValueError is raised if tz.dst(dt) returns None (2.3a1 treated it
as 0 instead).
!
! The tzinfo methods utcoffset() and dst() must return a timedelta object
! (or None) now. In 2.3a1 they could also return an int or long, but that
! was an unhelpfully redundant leftover from an earlier version wherein
! they couldn't return a timedelta. TOOWTDI.
!
Library
-------