getattr nested attributes

Christian Heimes lists at cheimes.de
Fri Aug 15 04:46:10 EDT 2008


Gregor Horvath wrote:
> any help?

I guess you missunderstood the sentence "For example, getattr(x, 
'foobar') is equivalent to x.foobar.". getattr(x, "foo.bar") is not 
equivalant to x.foo.bar.





More information about the Python-list mailing list