parser module and doc

S

Steven D'Aprano

I'm reading the docs for the parser module and I'm confused.

http://docs.python.org/library/parser.html

The doc make a number of references to the file "example.py", and says:

"All source files mentioned here which are not part of the Python
installation are located in the Demo/parser/ directory of the
distribution."

http://docs.python.org/library/parser.html#information-discovery

What distribution? What does this actually mean?


The page also talks about "public classes" ClassInfo, FunctionInfo and
ModuleInfo, but they don't exist:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ModuleInfo'


Where are these public classes?
 
M

Mark Dickinson

"All source files mentioned here which are not part of the Python
installation are located in the Demo/parser/ directory of the
distribution."

http://docs.python.org/library/parser.html#information-discovery

What distribution? What does this actually mean?

The source distribution, as obtained by downloading and unpacking
one of the source tarballs from (e.g., for Python 2.6):

http://www.python.org/download/releases/2.6.1/
The page also talks about "public classes" ClassInfo, FunctionInfo and
ModuleInfo, but they don't exist:

I think they're defined in the Demo/parser/example.py file.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,203
Latest member
LillianaFr

Latest Threads

Top