[Tutor] displaying properties/methods

Alan Gauld alan.gauld at freenet.co.uk
Fri Nov 18 06:31:57 CET 2005


> Hi all, i'm a newbie to python and now learning OOP. How do i display
> methods or properties that is owned by a class or a module? for example: i 
> know that module sys has a property/method called path. i want to know 
> what other methods it has, how do i find them from python command line?

Try:

import sys
dir(sys)
help(sys)

HTH,

Alan G
Author of the learn to program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list