[issue8957] strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales

Eli Bendersky report at bugs.python.org
Sat Jan 15 19:23:17 CET 2011

Eli Bendersky <eliben at gmail.com> added the comment:


1) Patch comments - thanks for those. Will have them fixed.
2) General strategy for implementing strptime. I must confess I don't fully understand the reason for doing what the _strptime module does. Standard C AFAIK has nothing of the sort - it only has strftime and strptime, both using a given format string. Neither tries to guess it from an actual formatted time! Does it exist just to circumvent platforms where strptime isn't implemented in C or is buggy? Can you please shed some light on this (or point me somewhere)?

With understanding of (2) I will be able to also logically reason about the next steps :-)


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list