__getattr__ question

Laszlo Nagy gandalf at designaproduct.biz
Sat Jun 10 08:23:28 EDT 2006


> print "item1" in dir(root) # False
> print "item3" in dir(root) # True
>
> Is it the behavior you wanted?
>   
Exactly. :-) Why I did not think of this?

I'm always amazed when I see that Python can do anything we want. :-)




More information about the Python-list mailing list