On 12/20/2011 12:05 PM, Joshua Landau wrote:
On 20 December 2011 10:55, Robert Kern <robert.k...@gmail.com
<mailto:robert.k...@gmail.com>> wrote:
On 12/20/11 1:34 AM, Joshua Landau wrote:
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?
Beats me. The 2.7 doc says inheritance ::= "(" [expression_list] ")"
and I no on no 3.x change/addition. My experiments with both genexp and
listcomp versions gave errors.
I ignore valid code. Thanks Ian and Robert for the input. Should I file
a documentation bug report?
Please do. It the addition means something, it needs to be explained in
the text. If it is wrong, it should go.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list