8000 gh-113212: Improve error message & document zero-arg super inside nested functions and generator expressions by WolframAlph · Pull Request #113307 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

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

Merged
merged 4 commits into from
Dec 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix pep8 line lengths
  • Loading branch information
AlexWaygood authored Dec 22, 2023
commit fec00bec8fb4cb80221fb5281bdaec2e4aa196b0
6 changes: 4 additions & 2 deletions Lib/test/test_super.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,10 @@ def method(self, type_, obj):

cases = (
(int, c, int.__name__, C.__name__, "instance of"),
(C, list(), C.__name__, list.__name__, "instance of"), # obj is instance of type
(C, list, C.__name__, list.__name__, "type"), # obj is type itself
# obj is instance of type
(C, list(), C.__name__, list.__name__, "instance of"),
# obj is type itself
(C, list, C.__name__, list.__name__, "type"),
)

for case in cases:
Expand Down
0