private variables/methods

Carlo v. Dango oest at soetu.eu
Thu Oct 16 04:12:53 EDT 2003


On 09 Oct 2003 14:06:06 +0200, gabor <gabor at z10n.net> wrote:

> On Thu, 2003-10-09 at 10:12, Dave Benjamin wrote:
>> In article <mailman.1065685337.1770.python-list at python.org>, gabor 
>> wrote:
>> > as far as i know in python there aren't any private (i mean not 
>> accessible
>> > from the outside of the object) methods/fields.

do you want private or protected? private can be acomplished with the ugly 
__ hack, but you can't create protected properties---this really suxx...


-carlo

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/




More information about the Python-list mailing list