Martin Panter added the comment: I think it would be okay to deprecate the methods in the documentation, but they should not be removed nor trigger warnings any time soon.
Currently the following related methods and attributes are documented: * addinfourl.getcode() == HTTPResponse.status == HTTPError.code * HTTPResponse.reason == HTTPError.reason (HTTPError documentation is vague on this.) * addinfourl.geturl() * addinfourl.info() == HTTPResponse.msg == HTTPError.headers (But see Issue 22989 and patch in Issue 21228 for a quirk with HTTPResponse.) It would be nice to ensure these three classes all implement the same “Response” interface, except that geturl() and “url” may not be appropriate for HTTPResponse. The “code” and “headers” attributes should definitely be documented for consistency. I propose also adding and documenting “reason”. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12707> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com