[Info] PEP 308 accepted - new conditional expressions

Andrew Koenig ark at acm.org
Sun Oct 16 14:27:04 EDT 2005


"Peter Hansen" <peter at engcorp.com> wrote in message 
news:4rmdnW7aD-pYAdDenZ2dnUVZ_sudnZ2d at powergate.ca...
> Dave Hansen wrote:
>> So lose the "if."
>>
>>    R = C then A else B

I think that part of the argument for the "A if C else B" syntax is that 
"then" is not currently a reserved word.





More information about the Python-list mailing list