This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients James O, docs@python, methane
Date 2017-03-04.04:45:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAEfz+TwYrw6XqfOXq-LuvyHQ6kN2sgCdhmyCk5PC6V5wFDTP8A@mail.gmail.com>
In-reply-to <CAEfz+TwuVAL6tKfZCXmtssBVYZYt+JoT3PopT4CNquYvJA5CqA@mail.gmail.com>
Content
namespace package is very advanced topic.
I don't think tutorial should mention it.
Putting __init__.py always in normal package is highly recommended.
Otherwise, many tools can't distinguish normal directory and python package.

2017/03/04 午前6:26 "James O" <report@bugs.python.org>:

New submission from James O:

PEP 420 says "Allowing implicit namespace packages means that the
requirement to provide an __init__.py file can be dropped completely..."
(as described here:  http://stackoverflow.com/questions/37139786/is-init-py-
not-required-for-packages-in-python-3)

The documentation for modules <https://docs.python.org/3/
tutorial/modules.html> doesn't seem to reflect this change.

My "enhancement suggestion" is that a sentence (and perhaps an example) be
added that explicitly states or shows an import from another directory.

(P.S. This is my first Python bug submission, so if it's silly, let me
know. Thanks!)

----------
assignee: docs@python
components: Documentation
messages: 288932
nosy: James O, docs@python
priority: normal
severity: normal
status: open
title: Python 3 Module doc still sounds like __init__.py is required
type: enhancement
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue29716>
_______________________________________
_______________________________________________
docs mailing list
docs@python.org
https://mail.python.org/mailman/listinfo/docs
History
Date User Action Args
2017-03-04 04:45:15methanesetrecipients: + methane, docs@python, James O
2017-03-04 04:45:15methanelinkissue29716 messages
2017-03-04 04:45:14methanecreate