Preventing direct access to a class
Aahz Maruch
aahz at panix.com
Sun Feb 4 15:58:32 EST 2001
In article <dc4r7t41dchrbrdabst1ung9mop3u4dnoj at 4ax.com>,
Daniel Klein <danielk at aracnet.com> wrote:
>
>I have a situation where I need to prevent direct access to a class.
BTW, the standard Python idiom for declaring this is to precede the
class name with a single underscore (see threading.py for a real
example):
class _foo:
pass
--
--- Aahz (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"People sometimes focus too much on the fact of communication rather than
the substance of communication." --Dave Morton
More information about the Python-list
mailing list