Skip to content

gh-113212: Improve error message & document zero-arg super inside nested functions and generator expressions - #113307

Merged
serhiy-storchaka merged 4 commits into
python:mainfrom
WolframAlph:zero-arg-super
Dec 22, 2023
Merged

gh-113212: Improve error message & document zero-arg super inside nested functions and generator expressions#113307
serhiy-storchaka merged 4 commits into
python:mainfrom
WolframAlph:zero-arg-super

Conversation

@WolframAlph

@WolframAlphWolframAlph commented Dec 20, 2023

Copy link
Copy Markdown
Contributor

@WolframAlphWolframAlph changed the title Improve error message & document arg super inside nested functions and generator expressionsgh-113212: Improve error message & document arg super inside nested functions and generator expressionsDec 20, 2023
Comment threadDoc/library/functions.rst Outdated
Comment threadDoc/library/functions.rst Outdated
Comment threadDoc/library/functions.rst Outdated
Comment threadDoc/library/functions.rst Outdated
@WolframAlphWolframAlph changed the title gh-113212: Improve error message & document arg super inside nested functions and generator expressionsgh-113212: Improve error message & document zero-arg super inside nested functions and generator expressionsDec 20, 2023
@Eclips4
Eclips4 requested a review from carljmDecember 20, 2023 18:39
Comment threadObjects/typeobject.c Outdated
Comment threadDoc/library/functions.rst
@WolframAlph
WolframAlphforce-pushed the zero-arg-super branch 3 times, most recently from adb9e79 to 9fdccb7CompareDecember 20, 2023 20:10

@carljmcarljm left a comment

Copy link
Copy Markdown
Member

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.

Comment threadObjects/typeobject.c Outdated
Comment threadDoc/library/functions.rst Outdated
@bedevere-app

Copy link
Copy Markdown

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.

@carljmcarljm left a comment

Copy link
Copy Markdown
Member

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?

Comment threadObjects/typeobject.c Outdated

@serhiy-storchakaserhiy-storchaka left a comment

Copy link
Copy Markdown
Member

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.

Comment threadDoc/library/functions.rst Outdated
Comment threadLib/test/test_super.py Outdated

@serhiy-storchakaserhiy-storchaka left a comment

Copy link
Copy Markdown
Member

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:mainDec 22, 2023
ryan-duve pushed a commit to ryan-duve/cpython that referenced this pull request Dec 26, 2023
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for freeto 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.

5 participants

@WolframAlph@carljm@serhiy-storchaka@AlexWaygood@Eclips4