Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17758 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2011-12-22 18:39 -0500 |
| Last post | 2011-12-22 18:39 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Grammar for classes Terry Reedy <tjreedy@udel.edu> - 2011-12-22 18:39 -0500
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-12-22 18:39 -0500 |
| Subject | Re: Grammar for classes |
| Message-ID | <mailman.4004.1324597206.27778.python-list@python.org> |
On 12/20/2011 12:05 PM, Joshua Landau wrote:
> On 20 December 2011 10:55, Robert Kern <robert.kern@gmail.com
> <mailto:robert.kern@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
Back to top | Article view | comp.lang.python
csiph-web