[Python-ideas] Inline assignments using "given" clauses

Chris Angelico rosuav at gmail.com
Fri May 11 11:45:20 EDT 2018


On Sat, May 12, 2018 at 12:04 AM, Jacco van Dorp <j.van.dorp at deonet.nl> wrote:
>> [João]
>> How do you read something like " while (cmd := get_command()).token != CMD_QUIT:" in plain english?
>
> while open-paren cee em dee colon is call get-underscore-command
> close-paren dot token doesn't equal all-caps cee em dee underscore
> quit colon.
>
> Might be some dutch in there.

While cee-em-dee (from get-command) dot token isn't CMD_Quit

ChrisA


More information about the Python-ideas mailing list