[Python-ideas] Before and after the colon in funciton defs.
Jan Kaliszewski
zuo at chopin.edu.pl
Thu Sep 22 10:11:35 CEST 2011
Eric Snow dixit (2011-09-21, 20:31):
> On Wed, Sep 21, 2011 at 7:01 PM, Jan Kaliszewski <zuo at chopin.edu.pl>
> wrote:
[snip]
> > spam, print, open = static (len, print, open)
> >
> > Big +1 from me.
>
> Agreed, though the the keyword should be on the LHS:
>
> static spam, print, open = len, print, open
But then you lose important advantages of the expression variant --
especially that assignment is not a part of the syntax construct so it
not only more powerfull but also more explicit and clear for newcomers:
any assignment is at run-time and normal assignment rules apply to it.
A bit like in case of `yield EXPR`.
Cheers.
*j
More information about the Python-ideas
mailing list