attributes, properties, and accessors -- philosophy

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Nov 25 17:46:49 CET 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:

More information about the Python-list mailing list