__getattr__ question

gotletter at gmail.com gotletter at gmail.com
Sat Jun 10 04:30:54 EDT 2006


Hello!

> How can I determine if an attribute can be found in the usual places?

print "item1" in dir(root) # False
print "item3" in dir(root) # True

Is it the behavior you wanted?




More information about the Python-list mailing list