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 cgohlke
Recipients Dragoljub, cgohlke, vstinner, xtreak
Date 2018-11-13.01:26:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542072391.35.0.788709270274.issue35195@psf.upfronthosting.co.za>
In-reply-to
Content
> Can someone please try to write an example which only uses the stdlib?

The simplest is to compare performance of the `windll.LoadLibrary('API-MS-WIN-CRT-STRING-L1-1-0.DLL')` function on Python 3.7.0a3 and 3.7.0a4, but that will mostly measure Python/ctypes overhead. I will post a minimal C extension instead.


> What are these extensions? Where do them come from?

The `isdigit` function is from the UCRT. The `parsers` Cython/C extension is part of the pandas wheel on PyPI. The context for this issue is at https://github.com/pandas-dev/pandas/issues/23516


> I don't understand which "locale changes" you are talking about. You can change the locale using locale.setlocale().

The `UCRT.isdigit` function, when run on Python >=3.7.0a4, calls the `_isdigit_l` function, which calls `_LocaleUpdate::_LocaleUpdate` (see the VS profiler output).
History
Date User Action Args
2018-11-13 01:26:31cgohlkesetrecipients: + cgohlke, vstinner, xtreak, Dragoljub
2018-11-13 01:26:31cgohlkesetmessageid: <1542072391.35.0.788709270274.issue35195@psf.upfronthosting.co.za>
2018-11-13 01:26:31cgohlkelinkissue35195 messages
2018-11-13 01:26:30cgohlkecreate