Feature Requests item #1117751, was opened at 2005-02-07 10:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1117751&group_id=5470
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Robert Kiendl (kxroberto) Assigned to: Nobody/Anonymous (nobody) Summary: urllib.urlopen should put the http-error-code in .info() Initial Comment: urllib.urlopen / open_http should put the http-error-code somewhere in .info() the "fancy" error handling may be ok. But the errcode & errmsg should not get lost and always be accessible ex post. In current style bare urllib.urlopen is hard to use. (web pages are often down). I always need to fumble a extra urllib.URLopener even for the simplest task. E.g.: f=urllib.urlopen('http://www.python.org/') httpcode=f.info().get_errcode() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1117751&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com