correct way to check for True in __builtins__?

Andrew Dalke dalke at dalkescientific.com
Fri May 10 21:05:02 EDT 2002


Mark McEahern:
>I want to check whether True is builtin
 ..
> Is there a preferred way to do this?

try:
  True
except NameError:
  print "There is no truth"

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list