[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-20 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

What should it do? OP expected that it print the redirected url. I don't think 
that's helpful by setting max_redirections to 0, when it can be achieved in 
other ways. 

Also, max_redirections is not exposed (as a parameter or arg) or a documented, 
how do we define user's expectation when he tries to change it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-20 Thread John J Lee

John J Lee jj...@users.sourceforge.net added the comment:

Oops, I hadn't noticed that max_redirections isn't part of the API.  In that 
case, I agree that it's not strictly a bug.  I'd also agree it's not very 
important.

FWIW: want[ing] to see all redirects is not the same thing as printing URLs 
-- I assume he simply meant that he wanted .open to return the original 
response, and not a redirected response.  I don't think he meant that he wanted 
urllib2 itself to allow him to literally see the URLs on his screen, by 
printing them to stdout (!).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-15 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

John, I was trying to find out what does rfc say on Client Ignoring the 30X 
REDIRECT headers. There is no point made on Client's trying to ignore it, 
instead it said that it should follow the Redirect and must not endlessly loop.

Setting max_redirect to 0 is similar to ignoring the redirect request , which I 
found to be a bad idea under any case.

Also, if one has to just see redirect urls coming from http server, it can be 
done by subclassing the HTTPRedirectHandler and logging the redirects.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-15 Thread John J Lee

John J Lee jj...@users.sourceforge.net added the comment:

That's silly.  A justification of the need for a new feature isn't needed, 
because this is already-implemented feature that simply does the wrong thing at 
the edge case.

It's not high priority, but it is a bug.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-13 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

This is an invalid bug report at the moment. In fact, aged.
The redirection depends upon max_redirections and max_repeats together. Setting 
it to 0 explicitly (inside the code) is not a good use case under any condition.

--
nosy:  -BreamoreBoy
resolution:  - wont fix
stage: unit test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-13 Thread John J Lee

John J Lee jj...@users.sourceforge.net added the comment:

Why not?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-10-18 Thread Senthil Kumaran

Changes by Senthil Kumaran orsent...@gmail.com:


--
assignee:  - orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-09-12 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Senthil/John has this simply slipped under the radar?

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2009-02-12 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

rus_r_orange: Can you share your patch and tests?

--
nosy: +ajaksu2, orsenthil
stage:  - test needed
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1520831] urrlib2 max_redirections=0 disables redirects

2009-02-12 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
nosy: +jjlee

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1520831
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com