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/2011-January/107635.html below:

[Python-Dev] Keeping __init__.py empty for Python packages used for module grouping.

[Python-Dev] Keeping __init__.py empty for Python packages used for module grouping. [Python-Dev] Keeping __init__.py empty for Python packages used for module grouping.Raymond Hettinger raymond.hettinger at gmail.com
Mon Jan 24 20:04:06 CET 2011
Looking at http://docs.python.org/dev/library/html.html#module-html it would appear that we've created a new module with a single trivial function.

In reality, there was already a python package, html, that served to group two loosely related modules, html.parser and html.entities.

ISTM, that if we're going to use python packages as "namespace containers" for categorizing modules, then the top level __init__ namespace should be left empty.

Before the placement of html.escape() becomes set in stone, I think we should consider putting it somewhere else.


Raymond

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