Let's say I have a package omegaproject I'm importing from a script test.py:
test.py
omegaproject/
__init__.py
omega.py
Say that in __init__.py I've put """Hello there""" and nothing else.
Now, say that test.py consists of:
import omegaproject
print(omegaproject.__doc__)
Shouldn't running test.py cause Python to display 'Hello there'? Instead, it displays nothing.
In other words, where do I specify the docstring of a package?
omegaproject.__file__.import omegaprojectand useomegaproject.__doc__from an ipython or a python shell, what happens?