[docs] [issue11796] Comprehensions in a class definition mostly cannot access class variable

Terry J. Reedy report at bugs.python.org
Sat Apr 9 02:31:27 CEST 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Title changed.
Generator expressions had the same limitation in 2.x.
All comprehensions have the same limitation in 3.x.

----------
title: list and generator expressions in a class definition fail if expression condition refers to a class variable -> Comprehensions in a class definition mostly cannot access class variable

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11796>
_______________________________________


More information about the docs mailing list