[Python-checkins] python/dist/src/Misc NEWS,1.1006,1.1007
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sat Jun 19 22:50:18 EDT 2004
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14933/Misc
Modified Files:
NEWS
Log Message:
Bug 975996: Add _PyTime_DoubleToTimet to C API
New include file timefuncs.h exports private API function
_PyTime_DoubleToTimet() from timemodule.c. timemodule should export
some other functions too (look for painful bits in datetimemodule.c).
Added insane-argument checking to datetime's assorted fromtimestamp()
and utcfromtimestamp() methods. Added insane-argument tests of these
to test_datetime, and insane-argument tests for ctime(), localtime()
and gmtime() to test_time.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1006
retrieving revision 1.1007
diff -C2 -d -r1.1006 -r1.1007
*** NEWS 19 Jun 2004 21:11:34 -0000 1.1006
--- NEWS 20 Jun 2004 02:50:15 -0000 1.1007
***************
*** 229,235 ****
-----------------
! - time module code that deals with time_t timestamps will now raise a
! ValueError if more than a second is lost in precision from time_t being less
! precise than a double. Closes bug #919012.
- fcntl.ioctl now warns if the mutate flag is not specified.
--- 229,239 ----
-----------------
! - time module code that deals with input POSIX timestamps will now raise
! ValueError if more than a second is lost in precision when the
! timestamp is cast to the platform C time_t type. There's no chance
! that the platform will do anything sensible with the result in such
! cases. This includes ctime(), localtime() and gmtime(). Assorted
! fromtimestamp() and utcfromtimestamp() methods in the datetime module
! were also protected. Closes bugs #919012 and 975996.
- fcntl.ioctl now warns if the mutate flag is not specified.
***************
*** 556,559 ****
--- 560,568 ----
-----
+ - Private function _PyTime_DoubleToTimet added, to convert a Python
+ timestamp (C double) to platform time_t with some out-of-bounds
+ checking. Declared in new header file timefuncs.h. It would be
+ good to expose some other internal timemodule.c functions there.
+
- New public functions PyEval_EvaluateFrame and PyGen_New to expose
generator objects.
More information about the Python-checkins
mailing list