Private identifiers - naming

Yermat loic at fejoz.net
Thu May 6 10:35:19 EDT 2004


Sridhar R wrote:
> 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?

Do we really need private variable ?

-- 
Yermat




More information about the Python-list mailing list