[ python-Bugs-997368 ] strftime() backwards incompatibility
SourceForge.net
noreply at sourceforge.net
Sun Jul 25 05:59:53 CEST 2004
Bugs item #997368, was opened at 2004-07-24 23:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=997368&group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: strftime() backwards incompatibility
Initial Comment:
time.strftime() in 2.4a0 places more restrictions on
its inputs than does the version in 2.3.x. Revision
2.140 seems to be where this was introduced.
I believe it is a common use of strftime() to fill
out only some fields of the time tuple. Requiring the
day of year and day of week is particularly burdensome.
Here is an example that triggers the changed behavior:
import time
now = time.gmtime()
now = now[:-3] + (0, 0, 0)
print time.strftime("", now)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=997368&group_id=5470
More information about the Python-bugs-list
mailing list