Re: examining python objects

2005-11-22 Thread rurpy
Colin J. Williams wrote: > [EMAIL PROTECTED] wrote: > > Bruno Desthuilliers wrote: > > > >>[EMAIL PROTECTED] a écrit : > >> > >>>Is there a function/class/module/whatever I can use to > >>>look at objects? I want something that will print the object's > >>>value (if any) in pretty-printed form, an

Re: examining python objects

2005-11-20 Thread Colin J. Williams
[EMAIL PROTECTED] wrote: > Bruno Desthuilliers wrote: > >>[EMAIL PROTECTED] a écrit : >> >>>Is there a function/class/module/whatever I can use to >>>look at objects? I want something that will print the object's >>>value (if any) in pretty-printed form, and list all it's attributes >>>and their

Re: examining python objects

2005-11-19 Thread rurpy
Bruno Desthuilliers wrote: > [EMAIL PROTECTED] a écrit : > > Is there a function/class/module/whatever I can use to > > look at objects? I want something that will print the object's > > value (if any) in pretty-printed form, and list all it's attributes > > and their values. And do all that rec

Re: examining python objects

2005-11-19 Thread rurpy
Bruno Desthuilliers wrote: > [EMAIL PROTECTED] a écrit : > > Is there a function/class/module/whatever I can use to > > look at objects? I want something that will print the object's > > value (if any) in pretty-printed form, and list all it's attributes > > and their values. And do all that rec

Re: examining python objects

2005-11-19 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Is there a function/class/module/whatever I can use to > look at objects? I want something that will print the object's > value (if any) in pretty-printed form, and list all it's attributes > and their values. And do all that recursively. > I want to be able to find

Re: examining python objects

2005-11-18 Thread rurpy
"Chris Mellon" <[EMAIL PROTECTED]> wrote: On 18 Nov 2005 14:05:05 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > -- snip -- > > Writing my own __repr__() is emphatically what I don't > > want to do! That is no better than debugging by inserting > > print statements, a technique from the 198

Re: examining python objects

2005-11-18 Thread Chris Mellon
On 18 Nov 2005 14:05:05 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > __repr__ almost always only prints a summary of it's > object, not the detailed internal structure that I want to > see. When it prints values, that are not pretty-printed, > nor are the objects that constitute the value

Re: examining python objects

2005-11-18 Thread rurpy
__repr__ almost always only prints a summary of it's object, not the detailed internal structure that I want to see. When it prints values, that are not pretty-printed, nor are the objects that constitute the value printed recursively. Writing my own __repr__() is emphatically what I don't want t

Re: examining python objects

2005-11-18 Thread Ben Finney
[EMAIL PROTECTED] wrote: > Is there a function/class/module/whatever I can use to look at > objects? The repr() function is what you want. > I want something that will print the object's value (if any) in > pretty-printed form, and list all it's attributes and their values. > And do all that recu

examining python objects

2005-11-18 Thread rurpy
Is there a function/class/module/whatever I can use to look at objects? I want something that will print the object's value (if any) in pretty-printed form, and list all it's attributes and their values. And do all that recursively. I want to be able to find out everything about an object that Py