If One Line

Fetchinson . fetchinson at googlemail.com
Thu Dec 25 10:26:41 EST 2014


> Is it possible in python:
>
> if ((x = a(b,c)) == 'TRUE'):
> 	print x

Nope. Assignment is not allowed in a conditional.

Cheers,
Daniel


> Thanks.
> --
> https://mail.python.org/mailman/listinfo/python-list
>


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown



More information about the Python-list mailing list