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.

Author vstinner
Recipients Dragoljub, cgohlke, vstinner, xtreak
Date 2018-11-13.11:42:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542109357.44.0.788709270274.issue35195@psf.upfronthosting.co.za>
In-reply-to
Content
> Yes, that slows down Python 3.7.0a3 to the 3.7.0a4 level.

Ok, so something calls setlocale(LC_CTYPE, "") or setlocale(LC_ALL, "") in Python 3.7.0. I'm not interested to dig the Git history. It doesn't really matter at this point.

Can you try to get the current LC_CTYPE locale on Python 3.6 or 3.7.0a3? Example:

$ python3 -c 'import _locale; print(_locale.setlocale(_locale.LC_CTYPE, None))'
fr_FR.utf8

Or using the locale module (it should give the same result):

$ python3 -c 'import locale; print(locale.setlocale(locale.LC_CTYPE, None))'
fr_FR.utf8

Can also also try on 3.7.0a4 and newer (ex: Python 3.7.1): locale.setlocale(locale.LC_ALL, "C"), to see it does workaround your performance issue? I don't recall if "C" or "POSIX" locales are supported on Windows.
History
Date User Action Args
2018-11-13 11:42:37vstinnersetrecipients: + vstinner, cgohlke, xtreak, Dragoljub
2018-11-13 11:42:37vstinnersetmessageid: <1542109357.44.0.788709270274.issue35195@psf.upfronthosting.co.za>
2018-11-13 11:42:37vstinnerlinkissue35195 messages
2018-11-13 11:42:37vstinnercreate