Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upfind a better way to get module descriptions #9
Comments
BurntSushi
referenced this issue
May 10, 2014
Closed
pdoc fails to run if any module uses zipimporter #7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BurntSushi commentedMay 10, 2014
As pointed out in #7, importlib.abc.InspectLoader should be used to load the source code to get a module description from a module loader. But this appears to only be available in Python 3, so its implementation should fail gracefully in Python 2. (i.e., Return an empty string.)