This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients TobiasHT, carlosdamazio, josh.r, serhiy.storchaka, tritium
Date 2021-12-28.06:48:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640674137.24.0.745603193067.issue46175@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-12-28 06:48:57serhiy.storchakasetrecipients: + serhiy.storchaka, josh.r, tritium, carlosdamazio, TobiasHT
2021-12-28 06:48:57serhiy.storchakasetmessageid: <1640674137.24.0.745603193067.issue46175@roundup.psfhosted.org>
2021-12-28 06:48:57serhiy.storchakalinkissue46175 messages
2021-12-28 06:48:57serhiy.storchakacreate