Pythonification of the asterisk-based collection packing/unpacking syntax

Eelco hoogendoorn.eelco at gmail.com
Sat Dec 24 12:23:59 EST 2011


On Dec 24, 4:01 pm, Chris Angelico <ros... at gmail.com> wrote:
> On Sun, Dec 25, 2011 at 1:45 AM, Eelco <hoogendoorn.ee... at gmail.com> wrote:
> > Can you give an example of a construct in python where two whitespace
> > delimited identifiers are legal?
>
> What do you mean? Two identifiers, separated only by whitespace and no
> keyword or operator?
>
> def foo():
>     asdf
>     qwer
>
> Perfectly legal, two statements that probably don't do anything useful though.
>
> ChrisA

Thats not a fair point, but more nitpicking. Yes, I should have been
more precise: in python, 'whitespace' is not a single beast like in
most languages, but newlines have a special meaning. I was obviously
not talking about those. Want to try again?



More information about the Python-list mailing list