[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

Senthil Kumaran report at bugs.python.org
Sun Jan 3 05:46:33 CET 2010


Senthil Kumaran <orsenthil at gmail.com> added the comment:

Here is the corrected patch for caching the 301 redirections.

* It caches only the redirection not the response.
* It retains cacheable=True kwarg for http_error_301 method. ( I feel, it should be useful)
* Have made the cached dict as private.

I have updated the tests. The existing tests for 301 see no changes too.

If you have any review comments, please pitch in. (I shall add the docs and news entry before commit)

Thanks!

----------
Added file: http://bugs.python.org/file15722/urllib2-301-redirection-CORRECTED.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1755841>
_______________________________________


More information about the Python-bugs-list mailing list