Bug in last httplib example in Python 2.7.5 docs in section 20.7.3
![](https://secure.gravatar.com/avatar/42f8b75959d96f57172758ff3f3b83aa.jpg?s=120&d=mm&r=g)
On the following page in the Python 2.7.5 docs: http://docs.python.org/2/library/httplib.html In section 20.7.3, the last example has:
response = conn.getresponse()>>> print resp.status, response.reason
However it should be:
response = conn.getresponse()>>> print response.status, response.reason
Hope it helps! Alex.
![](https://secure.gravatar.com/avatar/3c46e59585526b90c088845402bc8407.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 04.06.2013 15:37, schrieb Alex MacAulay:
On the following page in the Python 2.7.5 docs: http://docs.python.org/2/library/httplib.html In section 20.7.3, the last example has:
response = conn.getresponse() print resp.status, response.reason
However it should be:
response = conn.getresponse() print response.status, response.reason
Hi Alex, thanks for the report; this is now fixed and should appear online soon. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iEYEARECAAYFAlJRPrUACgkQN9GcIYhpnLCRLQCfWzduaPFBizKhYjWEbF6x8tLv zW4AnA8A9aeGnjZPztjZUye/Y/ddm3Gg =qfbo -----END PGP SIGNATURE-----
participants (2)
-
Alex MacAulay
-
Georg Brandl