[Python-Dev] Breaking undocumented API
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Nov 11 23:24:49 CET 2010
Nick Coghlan wrote:
> My personal opinion is that we should be trying to get the standard
> library to the point where __all__ definitions are unnecessary - if a
> name isn't in __all__, it should start with an underscore (and if that
> is true, then the __all__ definition becomes effectively redundant).
What about names imported from other modules that are used by
the module, but not intended for re-export? How would you
prevent them from turning up in help() etc. without using
__all__?
--
Greg
More information about the Python-Dev
mailing list