Accessors in Python (getters and setters)

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Thu Jul 20 17:35:05 EDT 2006


Ant a écrit :
> Came across this article this afternoon - thought it may be of interest
> to some of those following this thread...
> 
> http://www.devx.com/opensource/Article/31593/0/page/2
> 
Yeah. Presenting name mangling as the usual way to have 'private' 
attributes, then implementing (costly) access restriction by using... an 
implementation detail of the sys module. Great.



More information about the Python-list mailing list