Information about including module?

bukzor workitharder at gmail.com
Thu Jan 3 01:52:35 CET 2008


Is there any way to print the docstring of the including module? I'd
like to be able to do something like the following


file one.py:

"some docstring"
include two


file two.py:
from magicmodule import getincluder
print getincluder().__doc__


Running one.py would print the docstring.

Thanks!
Buck



More information about the Python-list mailing list