2

I'm a Ruby person migrating to Python. One thing that I miss is an easy way to see a list of all the methods that I could use on a particular object in a shell.

Is there an analogue to Ruby's Object#methods in Python?

0

1 Answer 1

6

Try dir(obj). It gives you a list of methods associated with obj.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.