The Wayback Machine - https://web.archive.org/web/20240106043305/https://github.com/python/cpython/pull/113307
Skip to content
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-113212: Improve error message & document zero-arg super inside nested functions and generator expressions #113307

Merged
merged 4 commits into from Dec 22, 2023

Conversation

WolframAlph
Copy link
Sponsor Contributor

@WolframAlph WolframAlph commented Dec 20, 2023

@WolframAlph WolframAlph changed the title Improve error message & document arg super inside nested functions and generator expressions gh-113212: Improve error message & document arg super inside nested functions and generator expressions Dec 20, 2023
Doc/library/functions.rst Outdated Show resolved Hide resolved
Doc/library/functions.rst Outdated Show resolved Hide resolved
Doc/library/functions.rst Outdated Show resolved Hide resolved
Doc/library/functions.rst Outdated Show resolved Hide resolved
@WolframAlph WolframAlph changed the title gh-113212: Improve error message & document arg super inside nested functions and generator expressions gh-113212: Improve error message & document zero-arg super inside nested functions and generator expressions Dec 20, 2023
@Eclips4 Eclips4 requested a review from carljm December 20, 2023 18:39
Objects/typeobject.c Outdated Show resolved Hide resolved
Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! This direction looks right to me; I have some thoughts inline about how to tweak the approach.

Objects/typeobject.c Outdated Show resolved Hide resolved
Doc/library/functions.rst Outdated Show resolved Hide resolved
@bedevere-app
Copy link

bedevere-app bot commented Dec 21, 2023

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Thanks @WolframAlph for the contribution. @AlexWaygood, any review comments before I merge?

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except PEP 7 and PEP 8 nitpicks. Some lines in C and Python code exceed the limit, please break them.

Lib/test/test_super.py Outdated Show resolved Hide resolved
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka serhiy-storchaka merged commit 4a3d241 into python:main Dec 22, 2023
32 checks passed
ryan-duve pushed a commit to ryan-duve/cpython that referenced this pull request Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants