[Python-Dev] Add __exports__ to modules
Ka-Ping Yee
ping@lfw.org
2001年1月11日 14:28:44 -0800 (PST)
On 2001年1月11日, Guido van Rossum wrote:
> > Sorry, you're right. I retract my comment about __all__.
>> Can you explain *why* you wanted to test for package-ness?
Auto-generating documentation. pydoc.py currently tests for __path__,
and looks for the presence of __init__.py in a subdirectory to mean
that the subdirectory name is a package name. Is it safe on all platforms
to just list all .py files in the subdirectory to get all submodules?
-- ?!ng
"If I have seen farther than others, it is because I was standing on a
really big heap of midgets."
-- K. Eric Drexler