On Fri, Jul 17, 2009 at 12:02 PM, Kent Johnson<[email protected]> wrote: > Names beginning with __ are 'mangled' to make them sort of secret. > This is a feature: > http://docs.python.org/reference/expressions.html#index-889
Just to add a bit, this interpreter session may be enlightening: >>> class a: ... def __method(): ... pass ... >>> dir(a()) ['__doc__', '__module__', '_a__method'] \t _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
