In reading thorough the syntax defined in the reference<http://docs.python.org/py3k/reference/compound_stmts.html#class-definitions>, the class statement has surprised me.
It says that the inheritance part of the class can accept comprehensions. What does this mean? I've tried: "class A(x for x in ()): pass" but this doesn't need the extra clause as "x for x in ()" is an expression, and thus this evaluates: "class A(x for x in (),): pass" although again it won't be a valid class anytime soon. So what is this clause for?
-- http://mail.python.org/mailman/listinfo/python-list