New submission from Aifu LIU <laf...@gmail.com>:
The output of this line: print r2.status, r2.reason should same as: print r1.status, r1.reason from https://docs.python.org/2.7/library/httplib.html >>> import httplib >>> conn = httplib.HTTPSConnection("www.python.org") >>> conn.request("GET", "/") >>> r1 = conn.getresponse() >>> print r1.status, r1.reason 200 OK >>> data1 = r1.read() >>> conn.request("GET", "/") >>> r2 = conn.getresponse() >>> print r2.status, r2.reason 404 Not Found >>> data2 = r2.read() >>> conn.close() ---------- assignee: docs@python components: Documentation messages: 319290 nosy: Aifu LIU, docs@python priority: normal severity: normal status: open title: example output error versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33830> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com