[Python-ideas] Reduce platform dependence of date and time related functions
Brett Cannon
brett at python.org
Tue Sep 17 19:02:20 CEST 2013
On Tue, Sep 17, 2013 at 12:27 PM, <random832 at fastmail.us> wrote:
> On Tue, Sep 17, 2013, at 12:19, Brett Cannon wrote:
> > You also have the issue that if you port strftime then you lose the pure
> > Python port of strptime:
> > http://hg.python.org/cpython/file/default/Lib/_strptime.py
>
> Why would that make you lose that? I'm not sure I understand.
>
strptime is implemented using strftime to get the locale information. As
you pointed out, getting the locale details is essentially not possible in
a cross-platform way unless you use strptime or strftime, so you have to
choose which is implemented in Python and relies on the other.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130917/29049b37/attachment.html>
More information about the Python-ideas
mailing list