Issue 8915: Use locale.nl_langinfo in _strptime - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: belopolsky Nosy List: belopolsky
Priority: low Keywords:

Created on 2010-06-06 03:35 by brett.cannon, last changed 2022-04-11 14:57 by admin.

Messages (3)
msg107181 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-06-06 03:35
It might perform better to use locale.nl_langinfo to get the current locale's datetime information instead of reverse-engineering from strftime (need to benchmark to see if this is true). This would need to be conditional as the datetime info might not be exposed through nl_langinfo.
msg107445 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-06-10 04:46
See also issue8957.  If this happens, I would like to add a pure python implementation strftime.  See also issue7989.
msg125958 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2011-01-10 23:56
I would also like to consider using OS strptime on platforms with a decent implementation.