GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python implementation of `functools.reduce` accepts keyword arguments, while the C implementation does not · Issue #121676 · python/cpython

Python implementation of functools.reduce accepts keyword arguments, while the C implementation does not #121676

New issue
Copy link
New issue
Copy link
Closed
Closed
Python implementation of functools.reduce accepts keyword arguments, while the C implementation does not#121676
Copy link
Labels
3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@Eclips4
Eclips4
opened on Jul 13, 2024
Issue body actions

Bug report

Bug description:

Steps to reproduce:

printf '*disabled*\n_functools\n' > Modules/Setup.local
./configure --with-pydebug && make -j
./python
Python 3.14.0a0 (heads/main:dc03ce797a, Jul 13 2024, 09:31:53) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import functools
>>> functools.reduce(function=lambda x, y: x + y, sequence=[1, 2, 3, 4, 5])
15

Our docs mention functools.reduce as a function that accepts positional-only arguments.

I have a PR ready to fix that.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

  • gh-121676: Raise a DeprecationWarning if the Python implementation of functools.reduce is called with a keyword args #121677

Activity

  1. Eclips4
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    3.14bugs and security fixesbugs and security fixes
    and removed
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on Jul 13, 2024
  2. Eclips4
    added a commit that references this issue on Jan 1, 2025

    gh-121676: Raise a ``DeprecationWarning`` if the Python implementatio…

    d903b17
  3. Eclips4
    closed this as completedon Jan 1, 2025
  4. srinivasreddy
    added a commit that references this issue on Jan 8, 2025

    pythongh-121676: Raise a ``DeprecationWarning`` if the Python impleme…

    e2886de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.