Viewing instance attributes in IDLE's debugger
Mike Callahan
mcalla at home.com
Thu Jan 17 10:31:46 EST 2002
With this simple code:
class test:
def __init__(self, value):
self.a = value
self.b = value + 1
def main():
b = test(4.3)
a = 3
print a,b.a,b.b
main()
self.a and self.b do not appear in the local or global viewing panes when
stepping inside of __init__(). Is there a way to view instance attributes
inside of the IDLE debugger?
Mike Callahan
More information about the Python-list
mailing list