[ python-Bugs-944407 ] No documentation for urllib2 exception classes

SourceForge.net noreply at sourceforge.net
Fri May 20 07:54:26 CEST 2005


Bugs item #944407, was opened at 2004-04-29 11:38
Message generated for change (Settings changed) made by fresh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=944407&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Chris Withers (fresh)
Assigned to: Nobody/Anonymous (nobody)
Summary: No documentation for urllib2 exception classes

Initial Comment:
There's not even reference documentation for the
exceptions used by urllib2. 

Documentation of what these are, how you're supposed to
handle them and what attributes you're supposed to play
with would be very handy.

I guess I'll just have to try and glean something from
the source :-S

----------------------------------------------------------------------

>Comment By: Chris Withers (fresh)
Date: 2005-05-20 05:54

Message:
Logged In: YES 
user_id=24723

True enough, I guess that some time in the last year this
got updated ;-)

----------------------------------------------------------------------

Comment By: John J Lee (jjlee)
Date: 2005-05-19 20:12

Message:
Logged In: YES 
user_id=261020

This is not correct, these exceptions are documented.

(from http://docs.python.org/lib/module-urllib2.html)

The following exceptions are raised as appropriate:

exception URLError
    The handlers raise this exception (or derived
exceptions) when they run into a problem. It is a subclass
of IOError. 

exception HTTPError
    A subclass of URLError, it can also function as a
non-exceptional file-like return value (the same thing that
urlopen() returns). This is useful when handling exotic HTTP
errors, such as requests for authentication. 

exception GopherError
    A subclass of URLError, this is the error raised by the
Gopher handler.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=944407&group_id=5470


More information about the Python-bugs-list mailing list