How do I access what's in this module?

Fencer no.i.dont at
Fri Jan 8 02:21:01 CET 2010

Hello, look at this lxml documentation page:

How do I access the functions and variables listed?

I tried from lxml.etree import ElementTree and the import itself seems 
to pass without complaint by the python interpreter but I can't seem to 
access anything in ElementTree, not the functions or variables. What is 
the proper way to import that module?

For example:
 >>> from lxml.etree import ElementTree
 >>> ElementTree.dump(None)
Traceback (most recent call last):
   File "<console>", line 1, in <module>

Also, can I access those items that begin with an underscore if I get 
the import sorted?

- Fencer

More information about the Python-list mailing list