[ python-Bugs-1390629 ] time.strftime('%F', local_time) is okay but time.strptime no

SourceForge.net noreply at sourceforge.net
Mon Dec 26 16:28:41 CET 2005


Bugs item #1390629, was opened at 2005-12-26 17:28
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=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: Open
Resolution: None
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'



----------------------------------------------------------------------

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