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 <awilliam@redhat.com>
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 |
|
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 <adam@blueradius.ca> Signed-off-by: Adam Williamson <awilliam@redhat.com>
|
GH-120539 is a backport of this pull request to the 3.13 branch. |
|
|
|
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <awilliam@redhat.com>
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <awilliam@redhat.com>
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <awilliam@redhat.com>
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