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
Remove the strict and related params completely removing the 0.9 support #61662
Comments
bpo-10711 Removed the HTTP 0.9 support in 3.2 and deprecated strict and related params in 3.2. It is time to remove those in 3.4. |
Tested this patch and all tests pass. |
May be in 3.4 an exception should be raised? HTTPConnection('python.org', 80, False) now silently returns wrong result. |
I don't know what is the best way to raise an Exception when we are deprecating an argument.
|
Serhiy - Had a chat with Thomas Wouters and realized that just removing the strict is a best way to go. We have been issuing Deprecation warning for 2 releases now and it should have given enough time for folks to make the changes. |
New changeset c9bf987d80f1 by Senthil Kumaran in branch 'default': |
I thought about how to leave the parameter and imlicitly raise an exception, |
Sorry, I went ahead with committing it. But let's continue the discussion. Leaving the parameter when we have said it will be deprecated may be a bad practice. It has remained unused for 2 versions now when the deprecation warning was added. The option 2 further presented a challenge with HTTPSConnection which was already using keyword-only args for last two parameters. Moving it up in the argument list may have presented a bad case. Two changes for one. |
New changeset ac023b1a23ea by Senthil Kumaran in branch '3.2': New changeset f4e966570416 by Senthil Kumaran in branch '3.3': New changeset 2a1b4ac63f3a by Senthil Kumaran in branch 'default': |
I do not understand what is bad in converting parameters after removed 'strict' to be keyword-only. |
Serhiy - the bad thing IMO would be 'enforcing a new feature in order to save people from using deprecated feature'. I am not against the addition of keyword only args for HTTPConnection in 3.4. A concrete need should be ascertained. Should we ask for python-dev suggestion? |
New changeset f9bb9c11363a by R David Murray in branch 'default': |
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: