[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-06-04 Thread jurjen Bos
jurjen Bos added the comment: I would like to point out that this is not going to work if someone visits more than 5 sites with the same authentication manager. This would have to be documentated, at least. We could fix this by putting the retry counter in the HTTPPasswordMgr; it is not hard

[issue8894] urllib2 authentication manager retries forever if password is wrong

2010-06-04 Thread jurjen Bos
jurjen Bos added the comment: Yep you're right. In that thread they are talking about the exact same problem as I was having. Obviously, I didn't find that one when I was looking for the problem in the database before I posted this. I do have my doubts about the 5 retries they prop

[issue8894] urllib2 authentication manager retries forever if password is wrong

2010-06-04 Thread jurjen Bos
New submission from jurjen Bos : If you use an authentication manager from urllib2, it will submit user code and password if authentication fails. However, if the password is wrong, the authentication manager will happily try again, again with the same password. A simple way to circumvent this