I am new to python. I have a few questions coming from an armature!

MRAB python at mrabarnett.plus.com
Wed Aug 17 15:41:28 EDT 2016


On 2016-08-17 19:39, Random832 wrote:
> On Wed, Aug 17, 2016, at 14:27, Terry Reedy wrote:
>> That particular syntax was not really considered.  At least 10 versions
>> using 'if', 'then', 'else', and other tokens were.
>>
>> They all had the problem of requiring a new keyword such as 'then' or
>> some other innovation.
>
> Why not just if(cond, trueval, falseval), a la Visual Basic?
>
> It's too late to change now, but I'm curious as to whether it was
> considered or not.
>
Well, it looks too much like a function call, which don't short-circuit.




More information about the Python-list mailing list