[issue41356] Convert bool.__new__ to argument clinic

2020-09-29 Thread Dennis Sweeney
Dennis Sweeney added the comment: Superseded by https://bugs.python.org/issue41870 -- nosy: -larry resolution: -> works for me stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41356] Convert bool.__new__ to argument clinic

2020-07-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: More microbenchmarks: pyperf timeit "bool()" Before: 63.1 ns +- 0.7 ns After: 51.7 ns +- 1.2 ns pyperf timeit "bool(0)" Before: 77.4 ns +- 1.9 ns After: 67.2 ns +- 1.3 ns pyperf timeit "bool(17)" Before: 77.3 ns +- 2.3 ns After:

[issue41356] Convert bool.__new__ to argument clinic

2020-07-21 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +20723 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21581 ___ Python tracker ___

[issue41356] Convert bool.__new__ to argument clinic

2020-07-21 Thread Dennis Sweeney
New submission from Dennis Sweeney : Benchmarked on my machine (Windows 10): .\python.bat -m pyperf timeit -s "from collections import deque; x = [[], [1]] * 1_000_000" "deque(map(bool, x), maxlen=0)" --- Win32 build configuration --- Master: 105 ms +- 2 ms With