[ python-Bugs-1390629 ] time.strftime('%F', local_time) is okay but time.strptime no
SourceForge.net
noreply at sourceforge.net
Mon Dec 26 19:02:21 CET 2005
Bugs item #1390629, was opened at 2005-12-26 16:28
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1390629&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nikos Kouremenos (nkour)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.strftime('%F', local_time) is okay but time.strptime no
Initial Comment:
THIS IS SUPER HUGE IMO
>>> a = time.strftime('%F', local_time)
>>> time.strptime(a, '%F')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/_strptime.py", line 287, in
strptime
format_regex = time_re.compile(format)
File "/usr/lib/python2.4/_strptime.py", line 264, in
compile
return re_compile(self.pattern(format), IGNORECASE)
File "/usr/lib/python2.4/_strptime.py", line 256, in
pattern
processed_format = "%s%s%s" % (processed_format,
KeyError: 'F'
----------------------------------------------------------------------
>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-12-26 19:02
Message:
Logged In: YES
user_id=1188172
Closing as Invalid, see bug #1390605.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1390629&group_id=5470
More information about the Python-bugs-list
mailing list