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
requests.cookies.RequestsCookieJar: popitem() does not work #6190
Comments
I found the issue and hopefully fixed it but I couldn't find the documentation entry, perhaps because |
Correct @kianelbo support was not intended for that method but we can't use the mapping interface without it. To be fair, exposing cookies as if they're a simple mapping was a huge design mistake. Unfortunately we're here now so I think we have to fix this unless @nateprewitt or @sethmlarson agree that we should fix the cookies design in some other backwards compatible fashion |
Yeah, I agree we should just fix it. Long term, I'm in favor of us reworking cookies entirely, as we've discussed before. For the moment, this seems reasonably straight forward to get the inherited methods working. Can we get a quick manual pass to verify this fixes the others that come through mapping? |
@nateprewitt do you mean just making the inherited methods work for now? They're currently ok other than |
Thanks for confirming, @kianelbo. I have your PR on the shortlist for review this week and we'll look at getting this change added. |
Hi. Any plans for reviewing the PR? I was really excited to see it merged. |
requests.cookies.RequestsCookieJar
'spopitem()
method doesn't seem to work even if cookies is not empty.Expected Result
From the doc:
(Also, I'm not sure what exactly is "D" here. I assume it means the cookies obj itself.)
Actual Result
It always raises KeyError even when it's not empty.
Reproduction Steps
System Information
The text was updated successfully, but these errors were encountered: