Kaydet (Commit) 1772f176 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

SF bug #661848 and #631055: Clarify use of __all__.

üst fb8595df
......@@ -702,7 +702,10 @@ imported by that module. The names given in \code{__all__} are all
considered public and are required to exist. If \code{__all__} is not
defined, the set of public names includes all names found in the
module's namespace which do not begin with an underscore character
(\character{_}).
(\character{_}). \code{__all__} should contain the entire public API.
It is intended to avoid accidentally exporting items that are not part
of the API (such as library modules which were imported and used within
the module).
\withsubitem{(optional module attribute)}{\ttindex{__all__}}
The \keyword{from} form with \samp{*} may only occur in a module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment