How do I access what's in this module?

Fencer no.i.dont at want.mail.from.spammers.com
Thu Jan 7 20:21:01 EST 2010


Hello, look at this lxml documentation page:
http://codespeak.net/lxml/api/index.html

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