]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37207: Use vectorcall for range() (GH-18464)
authorPetr Viktorin <encukou@gmail.com>
Tue, 18 Feb 2020 15:13:17 +0000 (16:13 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2020 15:13:17 +0000 (07:13 -0800)
commit6e35da976370e7c2e028165c65d7d7d42772a71f
treed589a75b9f8f2d1f1bf73947feb57a6b83cffebb
parent24bba8cf5b8db25c19bcd1d94e8e356874d1c723
bpo-37207: Use vectorcall for range() (GH-18464)

This continues the `range()` part of #13930. The complete pull request is stalled on discussions around dicts, but `range()` should not be controversial. (And I plan to open PRs for other parts if this is merged.)
On top of Mark's change, I unified `range_new` and `range_vectorcall`, which had a lot of duplicate code.

https://bugs.python.org/issue37207
Misc/NEWS.d/next/Core and Builtins/2019-06-09-10-54-31.bpo-37207.bLjgLR.rst [new file with mode: 0644]
Objects/rangeobject.c