Underscore data hiding (was python development practices?)
Cliff Wells
logiplexsoftware at earthlink.net
Wed Oct 31 12:56:09 EST 2001
On Wednesday 31 October 2001 09:15, Russell E. Owen wrote:
> My understanding is that a double underscore is required for Python to
> automagically mangle the name. On the other hand, two postings now
> suggest that a single underscore is sufficient.
A double underscore is required for Python to do any mangling (and it can't
end with a double underscore, either). A single underscore is simply a
convention that tells other programmers the name is not meant for public
consumption.
--
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308
More information about the Python-list
mailing list