[issue46175] Zero argument super() does not function properly inside generator expressions
Serhiy Storchaka
report at bugs.python.org
Tue Dec 28 01:48:57 EST 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I concur with Josh. super() uses a lot of magic, and in case of comprehensions it fails in interesting way.
Most common cases in which super() does not work:
1. Outside of a function defined in a class.
2. In a static method.
3. In inner function.
4. In comprehensions and generator expressions.
Idea #2 could help in cases 3 and 4.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46175>
_______________________________________
More information about the Python-bugs-list
mailing list