Python recursively __getattribute__

Roman Dolgiy tosters at gmail.com
Mon Nov 22 10:46:47 EST 2010


Hello,

I need to implement such behavior:

obj.attr1.attr2.attr3 --> obj.attr1__attr2__attr3
It looks like I have to override obj's class __getattribute__ and also
use python descriptors somehow.

Any help will be much appreciated.
http://stackoverflow.com/questions/4247036/python-recursively-getattribute



More information about the Python-list mailing list