Information about including module?

bukzor workitharder at gmail.com
Wed Jan 2 19:52:35 EST 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