Steven Bethard wrote: > Note that (x is not None) evaluates to True, not x. Note that you can't solve > this by introducing an 'and' either because {} evaluates to False in a boolean > context: Right. However you can do [x, {}][x is None]. But please don't! <double wink> -- Michael Hoffman