-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-120526: Correct signature of map builtin #120528
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
28c31da
to
fd2b592
Compare
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
map requires at least one iterable arg. If you just do `map(map)` you get an error "map() must have at least two arguments." This corrects the signature to reflect this, in line with how it's shown in https://docs.python.org/3/library/functions.html#map . Signed-off-by: Adam Williamson <[email protected]>
fd2b592
to
77089f2
Compare
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks @AdamWill for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
map() requires at least one iterable arg. (cherry picked from commit d4039d3) Co-authored-by: Adam Williamson <[email protected]> Signed-off-by: Adam Williamson <[email protected]>
GH-120539 is a backport of this pull request to the 3.13 branch. |
…120539) map() requires at least one iterable arg. (cherry picked from commit d4039d3) Signed-off-by: Adam Williamson <[email protected]> Co-authored-by: Adam Williamson <[email protected]>
|
|
|
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <[email protected]>
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <[email protected]>
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <[email protected]>
map requires at least one iterable arg. If you just do
map(map)
you get an error "map() must have at least two arguments." This corrects the signature to reflect this, in line with how it's shown in https://docs.python.org/3/library/functions.html#map .inspect.signature(map)
works in Python 3.13, but gives a signature that looks like only one arg is required #120526