Chris Angelico wrote: > things[i] except None if IndexError if issubclass(things, list) else KeyError That should probably be illegal without parens too: things[i] except None if (IndexError if issubclass(things, list) else KeyError) -- Greg