• comprehension
  • class
  • scope

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