
Permalink for comment
re: jmoiron
by Simba on Mon 18th Oct 2004 00:03 UTC

Actually, it's more than just a naming convention. Using the private naming convention in Python will cause the name to be mangled so that you cannot call it or access it outside the class (unless you specically use the mangled name.)

However, nothing in C++ is really private either. There is nothing to stop me from forging a pointer into a private data member of a class and then accessing it directly.