Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

listing an object's methods/attributes?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


rpjday at crashcourse

Nov 5, 2009, 10:48 PM

Post #1 of 2 (122 views)
Permalink
listing an object's methods/attributes?

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?

rday
--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
--
http://mail.python.org/mailman/listinfo/python-list


gagsl-py2 at yahoo

Nov 5, 2009, 11:10 PM

Post #2 of 2 (101 views)
Permalink
Re: listing an object's methods/attributes? [In reply to]

En Fri, 06 Nov 2009 03:48:48 -0300, Robert P. J. Day
<rpjday [at] crashcourse> 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

--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.