[wingide-users] stack data view doesn't display the return value of __repr__() for objects

Gigi the.gigi at gmail.com
Thu Aug 11 17:09:34 EDT 2005


Hi, sorry for the fragmented post. I Forgot to paste the code. Here it is:

class A(object):
    def __repr__(self):
        return '<Yeahh, it works!!!>'

a = A()
print 'str(a)=', str(a)
print 'repr(a)=', repr(a)


I'll add only that even in the stack data view 'a' appears properly in
the value of the locals() dictionary:

{'a': <Yeahh, it works!!!>}

My stack data view looks like that:

Variable               | Value
[-]locals                 {'a': <Yeahh, it works!!!>}
   a                        <__main__.A 0xb41bf0>  
[+]globals

But the value of the variable a itself is the default __repr__.

Thanks, Gigi


More information about the wingide-users mailing list