• comprehension
  • scope
  • class

Generator expressions and list/set/dict comprehensions create a new scope that can’t see class variables.