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/2013-July/127291.html below:

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

[Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores [Python-Dev] Tweaking PEP 8 guidelines for use of leading underscoresSteven D'Aprano steve at pearwood.info
Mon Jul 15 01:48:33 CEST 2013
On 14/07/13 21:09, Nick Coghlan wrote:

> Slight adjustment to the proposed wording to ensure completely undocumented
> modules are also considered private:

-1 on this adjustment. If somebody cannot be bothered writing a one-line doc string:

"This module is private, don't touch."

then they certainly shouldn't be allowed to use up a public name for a private module. I don't think we should be encouraging more private, undocumented modules. (Documentation is valuable even for private modules.)

I'd go further, and say that no more private modules should be accepted for the std lib unless they have a leading underscore. I suppose for backwards compatibility reasons, we probably can't go through the std lib and rename private modules to make it clear they are private, but we don't have to accept new ones without the underscore.


-- 
Steven
More information about the Python-Dev mailing list

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