Steve Holden wrote: > Bruno Desthuilliers wrote: >> tom arnall a écrit : >> >>>does anyone know of a utility to do a recursive dump of object data >>>members? >>> >> >> >> What are "object data members" ? (hint: in Python, everything is an >> object - even functions and methods). >> >> What is your real use case ? > > Basically it sounds like the OP wants to see the attribute values for an > object (and those objects' attribute values, ...). Presumably the > recursive descent could be stopped at the built-in types.
Yes, exactly. But what is 'OP'? > > I'm not familiar with any such thing. I'm amazed that there is no way to easily look at the fundamental data structures of a python program. I'm new to python - is there something I don't know about the territory in this regard? >The code of the standard library's > pprint module might be a good place to start I played around with this but it seems more targetted to looking at python objects as opposed to user-defined. >(and the suggested > functionality might make a nice addition if we could work out exactly > what the requirement was). I would be glad if people would comment on my example as a step in this direction. tom arnall north spit, ca usa -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list