Perfect your code
With built-in code review tools, GitHub makes it easy to raise the quality bar before you ship. Join the 40 million developers who've merged over 200 million pull requests.
Sign up for free See pricing for teams and enterprisesbpo-39200: Correct the error message for range() empty constructor #17813
Conversation
For me, this is more correct :) |
Would be nice to add tests. |
This comment has been minimized.
This comment has been minimized.
Other option - just use |
This comment has been minimized.
This comment has been minimized.
I have implemented the switch statement as we would need to do the dance with |
This comment has been minimized.
This comment has been minimized.
Done in eb9e784 |
e73eab4
to
eb9e784
This comment has been minimized.
This comment has been minimized.
Btw, as a bonus the constructor of master./python.exe -m pyperf timeit "range(1,3,4)" patched./python.exe -m pyperf timeit "range(1,3,4)" |
@pablogsal I left comments on test code :) |
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
4b66fa6
into
python:master
pablogsal commentedJan 3, 2020
•
edited by bedevere-bot
https://bugs.python.org/issue39200