[Python-Dev] conditional expressions?

Paul Moore gustav at morpheus.demon.co.uk
Tue Oct 16 18:00:51 EDT 2001


On Tue, 16 Oct 2001 11:27:42 +0200, "Anders J. Munch" <andersjm at dancontrol.dk>
wrote:

>Quick, what does this snippet do if return_as_map is true?
>
> return if return_as_map then {'A':a,'B':b} else a,b

Get you complained at in the code review :-)

Paul.



More information about the Python-list mailing list