[wingide-users] Re: Debug probe window cannot resolve instance
variables named with leading __
Wingware Support
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.
- Stephan
More information about the wingide-users
mailing list