![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archivedata hiding/namespace pollution
From: Alex Hunsley <lard@tardis.ed.ac.molar.uk>
Date: Mon Oct 31 2005 - 11:35:19 CET
There's no really specific questions in this post, but I'm looking for
The two main versions I've encountered for data pseudo-hiding
method 1:
_X - (single underscore) - just cosmetic, a convention to let someone
method 2:
__X - (double underscore) - mangles the name (in a predictable way).
How often does either tend to get used? Personally, I'd be a little
Also, I presume that rather than people writing their own manual getter
Note: I do know that the use of the above things is quite dependent on
thanks,
|