Class design (information hiding)

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Sep 7 11:33:26 EDT 2007


Alexander Eisenhuth a écrit :
> Bruno Desthuilliers schrieb:
> 
>> Nope. It's either 'interface' (no leading underscore),  
>> 'implementation' (single leading underscore), 'implementation with 
>> some protection against accidental overriding' (two leading underscores).
> 
> What do you mean with 'implementation'? What does it express?

The fact that a given attribute (or method - which are just callable 
attributes FWIW) is an implementation detail, and not a part of the 
class interface.



More information about the Python-list mailing list