Conditional expressions (again)

Paul Winkler slinkp23 at yahoo.com
Fri Oct 26 12:44:49 EDT 2001


On Fri, 26 Oct 2001 16:05:54 GMT, Terry Reedy <tjreedy at home.com> wrote:
>How about (untested)
>
>order.append( {michael:spam, john:eggs}.get(customer,cheese) )

Works. :)
I like it better than that function I posted.

-- PW




More information about the Python-list mailing list