Skip to content

Fix typo in ceval.c error message#148860

Open
Anonymous941 wants to merge 1 commit intopython:mainfrom
Anonymous941:main
Open

Fix typo in ceval.c error message#148860
Anonymous941 wants to merge 1 commit intopython:mainfrom
Anonymous941:main

Conversation

@Anonymous941
Copy link
Copy Markdown

@Anonymous941 Anonymous941 commented Apr 21, 2026

Changed finction to function.

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Apr 21, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Apr 21, 2026

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 skip news label instead.

@picnixz picnixz changed the title Typo fix Fix typo in ceval.c error message Apr 22, 2026
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Apr 22, 2026

Can you tell me in which case this exception would be raised?

@johnslavik
Copy link
Copy Markdown
Member

@picnixz, the smallest repro for this would be

>>> class E:
...     def __getattribute__(self, n):
...         if n == "__qualname__": raise RuntimeError
...         return super().__getattribute__(n)
... 
... E()(a=1, **{"a": 2})
... 
Traceback (most recent call last):
  File "<python-input-0>", line 6, in <module>
    E()(a=1, **{"a": 2})
    ~~~^^^^^^^^^^^^^^^^^
TypeError: finction got multiple values for keyword argument 'a'

finction is a C fallback to a failing __qualname__.

@picnixz
Copy link
Copy Markdown
Member

picnixz commented Apr 22, 2026

Ok thanks! We could add a NEWS entry but I think it would be a too niche case. I will include this in the commit message (currently travelling)

@picnixz picnixz self-assigned this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants