[Python-checkins] python/dist/src/Misc NEWS,1.937,1.938

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Mon Mar 1 23:38:12 EST 2004

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

Modified Files:
Log Message:
Have strftime() check its time tuple argument to make sure the tuple's values
are within proper boundaries as specified in the docs.

This can break possible code (datetime module needed changing, for instance)
that uses 0 for values that need to be greater 1 or greater (month, day, and
day of year).

Fixes bug #897625.

Index: NEWS
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.937
retrieving revision 1.938
diff -C2 -d -r1.937 -r1.938
*** NEWS	19 Feb 2004 19:35:22 -0000	1.937
--- NEWS	2 Mar 2004 04:38:09 -0000	1.938
*** 168,171 ****
--- 168,178 ----
+ - time.strftime() now checks that the values in its time tuple argument
+   are within the proper boundaries to prevent possible crashes from the
+   platform's C library implementation of strftime().  Can possibly
+   break code that uses values outside the range that didn't cause
+   problems previously (such as sitting day of year to 0).  Fixes bug
+   #897625.
  - The socket module now supports Bluetooth sockets, if the
    system has <bluetooth/bluetooth.h>

More information about the Python-checkins mailing list