[issue12006] strptime should implement %V or %u directive from libc

R. David Murray report at bugs.python.org
Wed May 25 04:26:55 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Thanks for wanting to work on this.

It is a little hard to parse from the OP's initial post, but he is asking that %V and %u be supported by datetime.strptime, which they currently are not.  strptime is the generalized constructor for turning a string into a datetime, so no, a new constructor is not the right approach.

The code that implements the strptime method of datetime is in the file _strptime.py in Lib.  Your patch should be against that code.  (Note that this is pretty un-obvious, I had to dig a bit to figure it out!)

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12006>
_______________________________________


More information about the Python-bugs-list mailing list