object.*

Chris Cioffi evenprimes at gmail.com
Thu Aug 26 12:02:30 EDT 2004


For most objects I would think vars(object) is what you want.

The dir() built in can help with methods as well.

http://www.python.org/doc/2.3.4/lib/built-in-funcs.html

As an aside:  the Python docs are some of the best written docs
around.  Read them, love them, put a copy under your pillow.

Cheers!

Chris

On 26 Aug 2004 08:41:25 -0700, DeadWisdom <deadwisdom at wisefool.net> wrote:
> I think there should be an ability in python to write something like
> "object.*" which should return a dictionary object containing all the
> members and their values for the given object.  Maybe ".*" could be
> treated as an operator. ::shrug::
> 
> Perhaps the functionality already exists in some other syntax; if so
> please splain.
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
Still searching for an even prime > 2!



More information about the Python-list mailing list