introspection question

A

Alex K

Hi Guys,

What would be the simplest way of enumerating all methods and members
(including inherited) of a given object? Thank you.

Alex
 
P

Peter Otten

Alex said:
What would be the simplest way of enumerating all methods and members
(including inherited) of a given object? Thank you.

inspect.getmembers()

Peter
 
P

Peter Otten

Alex K wrote:

Please don't top-post.
Nice thank you. But anyway to make it look pretty?

Maybe

$ /usr/bin/pydoc -p8080

Otherwise you'd have to explain what you are trying to do.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top