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 martin.panter
Recipients berker.peksag, demian.brecht, martin.panter
Date 2015-02-12.22:09:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1423778942.53.0.328079927645.issue23439@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t have a strong opinion about changing __all__ in these cases. I only noticed the potential problem when I went to add a new class to the module, and thought this was common practice. If we leave it as it is, it would be good to add comment in the source code explaining this decision. Also the test case could still be useful to catch future bugs.

The currently situation means the status constants are be missing from pydoc help output, and are not available when you do “from http.client import *” in the interactive interpreter.

HTTPMessage is a strange class indeed; see Issue 5053. But it is referenced a few times by the documentation, so I originally assumed it should be in __all__.
History
Date User Action Args
2015-02-12 22:09:02martin.pantersetrecipients: + martin.panter, berker.peksag, demian.brecht
2015-02-12 22:09:02martin.pantersetmessageid: <1423778942.53.0.328079927645.issue23439@psf.upfronthosting.co.za>
2015-02-12 22:09:02martin.panterlinkissue23439 messages
2015-02-12 22:09:02martin.pantercreate