summaryrefslogtreecommitdiffstats
path: root/config.sub
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2025-01-01 11:36:47 (GMT)
committerGitHub <noreply@github.com>2025-01-01 11:36:47 (GMT)
commitd903b17499b1a3bfb3ea848f6a1b6da02eac3328 (patch)
tree070a24e1cd2e3ebdb2ce6a739185f265138b244c /config.sub
parentc5438fdf4706a70bdd19338edc000dacffff6837 (diff)
downloadcpython-d903b17499b1a3bfb3ea848f6a1b6da02eac3328.zip
cpython-d903b17499b1a3bfb3ea848f6a1b6da02eac3328.tar.gz
cpython-d903b17499b1a3bfb3ea848f6a1b6da02eac3328.tar.bz2
gh-121676: Raise a ``DeprecationWarning`` if the Python implementation of ``functools.reduce`` is called with `function` or `sequence` as a keyword args (#121677)
Python implementation of `functools` allows calling `reduce` with `function` or `sequence` as keyword args. This doesn't match behavior of our C accelerator and our documentation for `functools.reduce` states that `function`and `sequence` are positional-only arguments. Now calling a Python implementation of `functools.reduce` with `function` or `sequence` as keyword args would raise a `DeprecationWarning` and is planned to be prohibited in Python 3.16. Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'config.sub')
0 files changed, 0 insertions, 0 deletions