Private identifiers - naming

Jacek Generowicz jacek.generowicz at cern.ch
Fri May 7 03:32:07 EDT 2004


Richard Taylor <rjt-usenet at thegrindstone.me.uk> writes:

> So the point of a 'private' variable is to indicate to the user of a class
> that the author of the class did not intend it to be accessed directly.
> Personally I tend to do this by appending a single '_' to method or
> identifier names. 

FWIW, "me too".



More information about the Python-list mailing list