[Python-Dev] Adding a conditional expression in Py3.0

Ron Adam rrr at ronadam.com
Thu Sep 22 04:57:30 CEST 2005


Greg Ewing wrote:
> Ron Adam wrote:
>>>>(a if e then b)
>>((a1 if e1 then b1) if e then b)
>>(a if e then (a2 if e2 then b2))
>>((a1 if e1 then b1) if e then (a2 if e2 then b2))
>>> I think you mean 'else' rather than 'then' in all
> those, don't you?

Yes of course, thanks for correcting.


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /