New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urllib2.Request constructor has no timeout parameter #46702
Comments
r55792 added timeout support to urllib2. A timeout parameter was added |
The argument timeout can not have the same semantics than data, see the
So, what would happen if you put timeout in Request:
In this last one, which the final timeout should be? None, as you passed With data you can do it, because None has no meaning, so only you |
This should be solved by introducing a "not set" value other than None. |
As I wrote in the other bug that you opened (bpo-2451), introducing this |
I don't buy the "API complication" argument. I might accept an argument that the timeout isn't really anything to do |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: