On Thu, Jan 24, 2002 at 05:46:51PM -0800, nimesh nedungadi wrote:
> hi
>
> In the python documentation, where do i find the list
> of all objects of a class... for eg. if i want to
> find, what are all the objects in parser class, how do
> i go about finding it.
As was already suggested you can get information on the parser module's doc
string via the 'help' function:
C:\>python
>>> help('parser')
Help on module parser:
NAME
parser - This is an interface to Python's internal parser.
<snip>
You can also use Python's 'dir' function to return a list of attributes on
the 'parser' module after you have imported it
>>> import parser
>>> dir(parser)
['ASTType', 'ParserError', '__copyright__', '__doc__', '__file__',
'__name__', ' __version__', '_pickler', 'ast2list', 'ast2tuple',
'compileast', 'expr', 'isexpr ', 'issuite', 'sequence2ast', 'suite',
'tuple2ast']
Cheers,
Trent
--
Trent Mick
[EMAIL PROTECTED]
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython