[ python-Bugs-1421696 ] http response dictionary incomplete
SourceForge.net
noreply at sourceforge.net
Mon Feb 6 23:39:12 CET 2006
Bugs item #1421696, was opened at 2006-02-01 12:56
Message generated for change (Comment added) made by jimjjewett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1421696&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: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
Summary: http response dictionary incomplete
Initial Comment:
httplib and BaseHTTPServer each maintain their own copy
of possible response codes.
They don't agree.
It looks like the one in httplib is a superset of the
one in BaseHTTPServer.BaseHTTPRequestHandler.responses,
and httplib is the logical place for it, but
(1) They map in opposite directions.
(2) The httplib version is just a bunch of names at
the module toplevel, with no particular grouping that
separates them from random classes, or makes them easy
to import as a group.
(3) The httplib names are explicitly not exported.
----------------------------------------------------------------------
>Comment By: Jim Jewett (jimjjewett)
Date: 2006-02-06 17:39
Message:
Logged In: YES
user_id=764593
That may make the cleanup more urgent. The mapping in
urllib2 is new with 2.5, so it should still be fine to
remove it, or forward to httplib.
The mapping in httplib is explicitly not exported, as there
is an __all__ which excludes them, so it *should* be
legitimate to remove them in a new release.
BaseHTTPServer places the mapping as a class attribute on a
public class. Therefore, either the final location has to
include both the message and the long message (so that
BaseHTTPServer can import it and delegate), or this has to
be the final location, or we can't at best get down to two.
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2006-02-05 19:56
Message:
Logged In: YES
user_id=261020
There's also one in urllib2 :-(
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1421696&group_id=5470
More information about the Python-bugs-list
mailing list