Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-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
…ythonGH-17813) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Jan 10, 2020
Thanks @pablogsal for the PR |
…ythonGH-17813) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 4b66fa6) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 10, 2020
GH-17940 is a backport of this pull request to the 3.8 branch. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Jan 10, 2020
Thanks @pablogsal for the PR |
…ythonGH-17813) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 4b66fa6) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 10, 2020
GH-17942 is a backport of this pull request to the 3.7 branch. |
pablogsal commentedJan 3, 2020
•
edited by bedevere-bot
https://bugs.python.org/issue39200