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
  • 155,156
  • 41
  • 207
  • 295
Vincent
  • 1,384
  • 2
  • 16
  • 24

1 Answers1

5

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

lzydrmr
  • 802
  • 5
  • 6