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?

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Vincent
  • 1,454
  • 2
  • 17
  • 24

1 Answers1

6

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

lzydrmr
  • 867
  • 5
  • 7