-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
gh-105626: Change the default return value of HTTPConnection.get_proxy_response_headers
#105628
Conversation
…et_proxy_response_headers`
This comment was marked as resolved.
This comment was marked as resolved.
Friendly ping :) |
@JelleZijlstra @AlexWaygood we have a little time left :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does seem like None
makes more sense here, but I'd prefer to get @gpshead's opinion.
As an aside it's amusing this test is still called test_httplib
, after the Python 2 name of this module.
|
I marked this as a release blocker to force us to decide before 3.12rc1 so that we don't wind up with our new API needing to have a deprecation cycle and behavior change in the future (or just live with what is understandably perceived as an API wart). |
@gpshead yes, from this side empty Questions:
|
honestly... that idiom may be enough, I expect this is going to be a very rarely used API. |
Thanks everyone :) |
…et_proxy_response_headers` (pythonGH-105628) (cherry picked from commit 490295d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-106738 is a backport of this pull request to the 3.12 branch. |
…et_proxy_response_headers` (python#105628)
See #104248 (comment)
CC @nametkin
HTTPConnection.get_proxy_response_headers
from{}
toNone
#105626📚 Documentation preview 📚: https://cpython-previews--105628.org.readthedocs.build/