[New-bugs-announce] [issue24118] http.client example is no longer valid
Steven D'Aprano
report at bugs.python.org
Sun May 3 16:39:28 CEST 2015
New submission from Steven D'Aprano:
The example code for http.client shows www.python.org/parrot.spam return a 404:
https://docs.python.org/3/library/http.client.html#examples
>>> # Example of an invalid request
>>> conn.request("GET", "/parrot.spam")
>>> r2 = conn.getresponse()
>>> print(r2.status, r2.reason)
404 Not Found
However it no longer does that, instead it returns a 301 Moved Permanently.
----------
assignee: docs at python
components: Documentation
messages: 242483
nosy: docs at python, steven.daprano
priority: normal
severity: normal
status: open
title: http.client example is no longer valid
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24118>
_______________________________________
More information about the New-bugs-announce
mailing list