Proposed new syntax

Steve D'Aprano steve+python at pearwood.info
Fri Aug 11 01:29:23 EDT 2017


On Fri, 11 Aug 2017 12:54 pm, Mikhail V wrote:

> but at a first glance, "while" reads as "if" as in english.

In English the two words don't mean the same thing.

That's why 

if foo:
    ...


and 

while foo:
    ...


are different.




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list