[issue31979] Simplify converting non-ASCII strings to int, float and complex

2018-07-13 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7810 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6a54c676e63517653d3d4a1e164bdd0fd45132d8 by Victor Stinner in branch 'master': bpo-31979: Remove unused align_maxchar() function (#4527) https://github.com/python/cpython/commit/6a54c676e63517653d3d4a1e164bdd0fd45132d8 -- _

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4463 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9b6c60cbce4ac45e8ccd7934babff465e9769509 by Serhiy Storchaka in branch 'master': bpo-31979: Simplify transforming decimals to ASCII (#4336) https://github.com/python/cpython/commit/9b6c60cbce4ac45e8ccd7934babff465e9769509 --

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As a side effect it slightly optimizes parsing non-ASCII numbers. $ ./python -m perf timeit --compare-to=./python0 'int("۱۲۳۴۵۶۷۸۹")' --duplicate 100 python0: . 277 ns +- 3 ns python: . 225 ns +- 3 ns Mean +- std dev

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-13 Thread STINNER Victor
STINNER Victor added the comment: I don't think that the weird behaviour justify to backport this non-trivial change. I propose to only apply the change in Python 3.7. -- ___ Python tracker _

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4290 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31979] Simplify converting non-ASCII strings to int, float and complex

2017-11-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : This issue is inspired by the tweet https://twitter.com/dabeaz/status/925787482515533830 >>> a = 'n' >>> b = 'ñ' >>> sys.getsizeof(a) 50 >>> sys.getsizeof(b) 74 >>> float(b) Traceback (most recent call last): File "", lin