A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011578.html below:

[Python-Dev] Add __exports__ to modules

[Python-Dev] Add __exports__ to modules [Python-Dev] Add __exports__ to modulesGuido van Rossum guido@python.org
Fri, 12 Jan 2001 08:54:12 -0500
> > 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?

Yes, that should work.  Of course there could also be extension
modules or .pyc-only files there -- you could use imp..get_suffixes()
to find out all modules (even if that means you don't always have the
source code available).

--Guido van Rossum (home page: http://www.python.org/~guido/)




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4