correct way to check for True in __builtins__?

Mark McEahern mark at mceahern.com
Fri May 10 21:15:22 EDT 2002


[Ian Bicking]
> It would be a bit easier to do:
> 
> try:
>     True
> except NameError:
>     ...

I like the simplicity of this one.  Thanks for all the replies everyone!

Cheers,

// m





More information about the Python-list mailing list