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.

classification
Title: Duplicate import documentation in py3k
Type: behavior Stage:
Components: Documentation Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, ezio.melotti, georg.brandl, kousu
Priority: normal Keywords:

Created on 2013-10-13 19:40 by kousu, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
The ``import`` statement - (2013-10-13 15:36:07) kousu, 2013-10-13 19:40
Messages (4)
msg199775 - (view) Author: Nick Guenther (kousu) Date: 2013-10-13 19:40
Python3's docs given by
>> help("import")

duplicate these two paragraphs:
"The *public names* defined by a module are determined by checking the
module's namespace for a variable named ``__all__``; if defined, it
must be a sequence of strings which are names defined or imported by
that module.  The names given in ``__all__`` are all considered public
and are required to exist.  If ``__all__`` is not defined, the set of
public names includes all names found in the module's namespace which
do not begin with an underscore character (``'_'``).  ``__all__``
should contain the entire public API. It is intended to avoid
accidentally exporting items that are not part of the API (such as
library modules which were imported and used within the module).

The ``from`` form with ``*`` may only occur in a module scope.
Attempting to use it in class or function definitions will raise a
``SyntaxError``."

(full output attached for proof)

Digging through the sources, I can't find where this is defined. The python2 on my system has the same two paragraphs but they are *not* duplicated there, and in the sources, which admittedly I don't know my way around, Doc/reference/simple_stmts.rst contains these paragraphs but only once each, and grep seems to imply this is the source of them.

Did sphinx screw up somewhere between your hg and my distro mirror?

Here's my version info (arch linux, 64 bit)
[kousu@galleon ~]$ pacman -Qi python
Name           : python
Version        : 3.3.2-2
Description    : Next generation of the python high-level scripting language
Architecture   : x86_64
URL            : http://www.python.org/
Licenses       : custom
Groups         : None
Provides       : python3
Depends On     : expat  bzip2  gdbm  openssl  libffi  zlib
Optional Deps  : tk: for tkinter [installed]
                 sqlite [installed]
Required By    : cython  ipython  ktoblzcheck  libreoffice-common  python-cairo  python-dateutil  python-dbus  python-markupsafe
                 python-numpy  python-pyparsing  python-pytz  python-pyzmq  python-setuptools  python-sip  python-six  python-sympy
                 python-tornado  python-xdg  ranger  youtube-dl
Optional For   : systemd
Conflicts With : None
Replaces       : python3
Installed Size : 86980.00 KiB
Packager       : Bart
Build Date     : Fri Sep 6 03:31:57 2013
Install Date   : Tue Sep 17 10:29:36 2013
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By   : Signature
msg199777 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-10-13 19:46
I can reproduce on 3.3; looks OK on 3.4.
msg199783 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2013-10-13 20:01
This is already fixed in the 3.3 branch (see #17938); it will be updated for pydoc "automatically" before the next bugfix release (the actual content comes from Lib/pydoc_data/topics.py).
msg199784 - (view) Author: Nick Guenther (kousu) Date: 2013-10-13 20:02
Thank you. Sorry for the duplicates. I tried to search the bug tracker but nothing stood out to me.
History
Date User Action Args
2022-04-11 14:57:51adminsetgithub: 63449
2013-10-13 20:02:17koususetmessages: + msg199784
2013-10-13 20:01:05georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg199783

resolution: fixed
2013-10-13 19:46:44ezio.melottisettype: behavior

messages: + msg199777
nosy: + ezio.melotti
2013-10-13 19:40:34kousucreate