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

2013年7月16日 04:18:34 -0700

On 16 July 2013 20:28, Richard Oudkerk <[email protected]> wrote:
> 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?
Gah, you're right. I did consider that, then forgot to include it in
the proposed text.
Rather than throwing more versions of the text at the list, I'll
create a tracker issue and post a proposed patch for PEP 8.
Cheers,
Nick.
--
Nick Coghlan | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to