Newbie Q: Class Privacy (or lack of)

Bruno Desthuilliers onurb at xiludom.gro
Thu Jul 27 03:45:38 EDT 2006


Ray wrote:
<ot>Ray, please, don't top-post</ot>

(snip)
> Also having to check whether a name has already existed can be a major
> pain in the butt with Python.

assert 'somename' not in dir(someObject)

(snip)

> Regarding the lack of privacy, 

s/privacy/language-inforced access restriction/

> --I guess I've been doing Java too long :)

indeed !-)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list