[issue35195] [Windows] Python 3.7 initializes LC_CTYPE locale at startup, causing performance issue on msvcrt isdigit()
Dragoljub
report at bugs.python.org
Tue Nov 13 12:31:32 EST 2018
Dragoljub <dragoljub at gmail.com> added the comment:
On Python 3.7.1 and Windows 10:
I attempted locale.setlocale(locale.LC_ALL, "POSIX") --> Errors Out
---------------------------------------------------------------------------
Error Traceback (most recent call last)
<ipython-input-8-f384c02ab238> in <module>
----> 1 locale.setlocale(locale.LC_ALL, "POSIX")
D:\Python37\lib\locale.py in setlocale(category, locale)
602 # convert to string
603 locale = normalize(_build_localename(locale))
--> 604 return _setlocale(category, locale)
605
606 def resetlocale(category=LC_ALL):
Error: unsupported locale setting
I was able to set the loacle to "C" but that does not improve the parsing performance.
locale.setlocale(locale.LC_ALL, "C") --> returns 'C'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35195>
_______________________________________
More information about the Python-bugs-list
mailing list