classification
Title: pydoc: move __future__ imports out of the DATA block
Type: enhancement Stage:
Components: Documentation Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, iritkatriel, veky
Priority: normal Keywords:

Created on 2016-01-15 06:31 by Antony.Lee, last changed 2021-12-07 15:15 by veky.

Messages (3)
msg258272 - (view) Author: Antony Lee (Antony.Lee) * Date: 2016-01-15 06:31
Currently, for a module that uses __future__ imports, the DATA section of `pydoc foo` contains these imports interspersed with the "real" data from the module.

Even though it is fully-featured _Feature objects that are imported, it probably makes sense to move them out of this section.
msg407922 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-12-07 11:48
Reproduced on 3.11.
msg407939 - (view) Author: Vedran Čačić (veky) * Date: 2021-12-07 15:15
I thought that _Feature starts with an underscore precisely to evade such listings. Do other "private" module data also get listed?
History
Date User Action Args
2021-12-07 15:15:32vekysetnosy: + veky
messages: + msg407939
2021-12-07 13:28:12Antony.Leesetnosy: - Antony.Lee
2021-12-07 11:48:48iritkatrielsetversions: + Python 3.11, - Python 3.5, Python 3.6
nosy: + iritkatriel

messages: + msg407922

type: enhancement
2016-01-15 06:31:40Antony.Leecreate