danielx a écrit :
> 
(snip)
> Sigh. I TOTALLY realize that Python works by politeness and not
> enforcement. I think you are misinterpreting why I think this would be
> a good idea. My concern is not with control, but with convenience.

Having free access to implementation is convenient IMHO.

> My
> suggestion was that privates would only be invisible if you use the dot
> syntax (ie if you are an external user); they would not be invisible
> altogether (they would still be in __dict__ with no name games).

How would this work for class attributes ? (implementation methods, 
implementation descriptors etc...)

Also, it would impact lookup perfs, which is already a somewhat weak 
point in Python.




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to