If I do this:
import lxml
in python, lxml.html is not imported. For instance, I cannot call the lxml.html.parse()
lxml.html
lxml.html.parse()
This is to allow only the minimum amount of code to have to be loaded for multi-part libraries that you may not use the entirety of. For instance, you might not be using the html part of lxml, and thus not want to have to deal with loading its code.
html
lxml