How to write Smart Python programs?

Paul Rubin http
Thu Oct 12 02:36:58 EDT 2006


Antoine De Groote <antoine at vo.lu> writes:
> In the snippet above (taken from the Python doc
> http://docs.python.org/lib/built-in-funcs.html), self.__x is
> initialized, but never used. I would appreciate any explanation for
> this.

Looks like a typo, should say self._x .



More information about the Python-list mailing list