Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17758
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Grammar for classes |
| Date | 2011-12-22 18:39 -0500 |
| References | <CAN1F8qWV1j-2VDvMyh47dxfj4G_yXSP8rcUdmpBY-HLrD5gaUQ@mail.gmail.com> <jcppjc$va7$1@dough.gmane.org> <CAN1F8qXjE0zPrUjC-Kih=gCm=pv4mwGPCvT+Y5EE3XVwVw3WwA@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4004.1324597206.27778.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Grammar for classes Terry Reedy <tjreedy@udel.edu> - 2011-12-22 18:39 -0500
csiph-web