Message409250
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. |
|
Date |
User |
Action |
Args |
2021-12-28 06:48:57 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, josh.r, tritium, carlosdamazio, TobiasHT |
2021-12-28 06:48:57 | serhiy.storchaka | set | messageid: <1640674137.24.0.745603193067.issue46175@roundup.psfhosted.org> |
2021-12-28 06:48:57 | serhiy.storchaka | link | issue46175 messages |
2021-12-28 06:48:57 | serhiy.storchaka | create | |
|