[wingide-users] Re: Debug probe window cannot resolve instance
variables named with leading __
support at wingware.com
Tue Dec 5 19:11:07 MST 2006
On Tue, 5 Dec 2006, Tony Cappellini wrote:
> I have several instance variables named like this self.__myvar.
> These variables work normally in the script, but the debug window and the
> watch window thinks they are not part of the class.
> Has anyone else seen this problem?
Yes, this is because Python munges the names so __myvar in class
myclass is renamed to _myclass__myvar. In Wing 2.1 the only work
around is to type self._myclass__myvar. In the future, we'll fix
this up automatically.
More information about the wingide-users