D
Donn Ingle
Hi,
Is there a way to get a dump of the insides of an object? I thought pprint
would do it. If I had a class like this:
class t:
def __init__(self):
self.x=1
self.y=2
self.obj = SomeOtherObj()
Then it could display it as:
<class> t,
x,1,
y,2,
obj,<class SomeOtherObj>
Or something like that -- a complete output of the object really, with
id()'s and so forth.
\d
Is there a way to get a dump of the insides of an object? I thought pprint
would do it. If I had a class like this:
class t:
def __init__(self):
self.x=1
self.y=2
self.obj = SomeOtherObj()
Then it could display it as:
<class> t,
x,1,
y,2,
obj,<class SomeOtherObj>
Or something like that -- a complete output of the object really, with
id()'s and so forth.
\d