Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue46175> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com