summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-12-14 05:27:34 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-12-14 05:27:34 (GMT)
commitc1be59f40ae7d1268961b95c5734297b5ca3d872 (patch)
treecceb19a2807171fe77387742c2f6a42a4fbfdbe9 /Misc/NEWS
parent328f338196f79e68f867a35cda171f01abef4f8e (diff)
downloadcpython-c1be59f40ae7d1268961b95c5734297b5ca3d872.zip
cpython-c1be59f40ae7d1268961b95c5734297b5ca3d872.tar.gz
cpython-c1be59f40ae7d1268961b95c5734297b5ca3d872.tar.bz2
SF patch 852995: add processors feature to urllib2
John J. Lee writes: "the patch makes it possible to implement functionality like HTTP cookie handling, Refresh handling, etc. etc. using handler objects. At the moment urllib2's handler objects aren't quite up to the job, which results in a lot of cut-n-paste and subclassing. I believe the changes are backwards-compatible, with the exception of people who've reimplemented build_opener()'s functionality -- those people would need to call opener.add_handler(HTTPErrorProcessor). The main change is allowing handlers to implement methods like: http_request(request) http_response(request, response) In addition to the usual http_open(request) http_error{_*}(...) " Note that the change isn't well documented at least in part because handlers aren't well documented at all. Need to fix this. Add a bunch of new tests. It appears that none of these tests actually use the network, so they don't need to be guarded by a resource flag.
Diffstat (limited to 'Misc/NEWS')
0 files changed, 0 insertions, 0 deletions