Private identifiers - naming

Sridhar R sridharinfinity at yahoo.com
Thu May 6 10:00:59 EDT 2004


In python, to hide (from direct access) identifiers from outsiders
(not current module), we usually prefix the variables with '__'.

But this is usually _difficult_ to read.  Imagine a module (which is a
common one) containing more private variables than public variables.

How cryptic it would be to see text with lot of __ in front of them !!

Any thoughts?



More information about the Python-list mailing list