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
Title: Use locale.nl_langinfo in _strptime
Type: enhancement Stage: needs patch
Components: Library (Lib) Versions: Python 3.7
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.
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53161
2016-09-10 18:34:48belopolskysetversions: + Python 3.7, - Python 3.4
2013-01-11 16:19:08brett.cannonsetnosy: - brett.cannon

versions: + Python 3.4, - Python 3.3
2011-01-12 00:08:40belopolskylinkissue8957 dependencies
2011-01-11 22:45:49belopolskyunlinkissue8957 dependencies
2011-01-11 00:18:19belopolskylinkissue8957 dependencies
2011-01-10 23:56:14belopolskysettype: enhancement
versions: + Python 3.3, - Python 3.2
messages: + msg125958
stage: needs patch
2010-06-10 04:46:14belopolskysetassignee: belopolsky

messages: + msg107445
nosy: + belopolsky
2010-06-06 03:35:08brett.cannoncreate