[Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores

Richard Oudkerk shibturn at gmail.com
Tue Jul 16 12:28:28 CEST 2013


On 16/07/2013 6:44am, Nick Coghlan wrote:
> Clarifying what constitutes an internal interface in a way that
> doesn't require renaming anything is a necessary prerequisite for
> bundling or bootstrapping the pip CLI in Python 3.4 (as pip exposes
> its internal implemetnation API as "import pip" rather than "import
> _pip" and renaming it would lead to a lot of pointless code churn).
> Without that concern, the topic never would have come up.

BTW, how does the use of __all__ effect things?  Somewhere I got the 
idea that if a module uses __all__ then anything not listed is internal. 
  I take it that is wrong?

-- 
Richard



More information about the Python-Dev mailing list