attributes, properties, and accessors -- philosophy
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Wed Nov 25 11:46:49 EST 2009
Ethan Furman a écrit :
>
> Very helpful, thank you. Hopefully my brain will be up to the
> descriptor protocol this time... the last couple times were, um, less
> than successful. :)
Well, it's quite simple in fact. Most of the "magic" happens in
object.__getattribute__ and object.__setattr__. You'll find a rough
description of what happens here:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/a136f7626b2a8b7d/70a672cf7448c68e
More information about the Python-list
mailing list