listing an object's methods/attributes?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Nov 6 02:10:02 EST 2009
En Fri, 06 Nov 2009 03:48:48 -0300, Robert P. J. Day
<rpjday at crashcourse.ca> escribió:
> getting back into python after a long hiatus and "diving" into
> python 3 (http://www.diveintopython3.org/), but i can't remember how
> to list an object's full set of methods or attributes. how does that
> go again?
Try dir(the_object), vars(the_object), help(the_object), see(the_object) -
this last one a hidden gem from http://github.com/inky/see (see is "dir
for humans")
--
Gabriel Genellina
More information about the Python-list
mailing list