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.01:45:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542073523.45.0.788709270274.issue35195@psf.upfronthosting.co.za>
In-reply-to
Content
> digits = ''.join([str(i) for i in range(10)]*10000000)
> %timeit digits.isdigit() # --> 2X+ slower on python 3.7.1

This code calls:

* (Python) str.isdigit()
* unicode_isdigit_impl()
* _PyUnicode_IsDigit()
* _PyUnicode_ToDigit() which uses Python internal Unicode database

This code doesn't depend on locales at all. It's pure Unicode.
History
Date User Action Args
2018-11-13 01:45:23vstinnersetrecipients: + vstinner, cgohlke, xtreak, Dragoljub
2018-11-13 01:45:23vstinnersetmessageid: <1542073523.45.0.788709270274.issue35195@psf.upfronthosting.co.za>
2018-11-13 01:45:23vstinnerlinkissue35195 messages
2018-11-13 01:45:23vstinnercreate