Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.strftime('%F', local_time) is okay but time.strptime no #42732

Closed
nkour mannequin opened this issue Dec 26, 2005 · 2 comments
Closed

time.strftime('%F', local_time) is okay but time.strptime no #42732

nkour mannequin opened this issue Dec 26, 2005 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@nkour
Copy link
Mannequin

nkour mannequin commented Dec 26, 2005

BPO 1390629
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2005-12-26.18:02:20.000>
created_at = <Date 2005-12-26.15:28:41.000>
labels = ['invalid', 'library']
title = "time.strftime('%F', local_time) is okay but time.strptime no"
updated_at = <Date 2005-12-26.18:02:20.000>
user = 'https://bugs.python.org/nkour'

bugs.python.org fields:

activity = <Date 2005-12-26.18:02:20.000>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2005-12-26.15:28:41.000>
creator = 'nkour'
dependencies = []
files = []
hgrepos = []
issue_num = 1390629
keywords = []
message_count = 2.0
messages = ['27161', '27162']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'nkour']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1390629'
versions = ['Python 2.4']

@nkour
Copy link
Mannequin Author

nkour mannequin commented Dec 26, 2005

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'

@nkour nkour mannequin closed this as completed Dec 26, 2005
@nkour nkour mannequin added invalid stdlib Python modules in the Lib dir labels Dec 26, 2005
@birkenfeld
Copy link
Member

Logged In: YES
user_id=1188172

Closing as Invalid, see bug bpo-1390605.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant