-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-124748: Fix handling kwargs in WeakKeyDictionary.update() #124783
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
base: main
Are you sure you want to change the base?
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
bc08051 to
ca7aa47
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
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.
Please, add:
- a NEWS entry
- a test case for this
Congrats on your first PR to CPython 👍
9514c64 to
5186d90
Compare
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
10d0c4d to
51d4868
Compare
|
@sobolevn, thank you. Now all linters and checkers are green |
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.
My take on better wording
Misc/NEWS.d/next/Library/2024-09-30-15-31-59.gh-issue-124748.KYzYFp.rst
Outdated
Show resolved
Hide resolved
5e22f1c to
6125080
Compare
Misc/NEWS.d/next/Library/2024-09-30-15-31-59.gh-issue-124748.KYzYFp.rst
Outdated
Show resolved
Hide resolved
b020f97 to
dff1890
Compare
@sobolevn and @tomasr8, I think the message in the Docs workflow is being output because the |
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.
Other than my suggestion, this looks good to me.
But, I am not an expert in weakref. So, I would like to get a second review.
@rhettinger or @ambv, would you be interested? Based on https://github.com/python/cpython/commits/main/Lib/weakref.py
Misc/NEWS.d/next/Library/2024-09-30-15-31-59.gh-issue-124748.KYzYFp.rst
Outdated
Show resolved
Hide resolved
|
@sobolevn, also when I fixed the message mismatch in the exception and test, I apparently undid 2 edits in it. I think I should put them back and do a squash of commits. There are not so many changes to keep a detailed history of them |
Co-authored-by: sobolevn <[email protected]> Co-authored-by: Tomas R <[email protected]>
Normally it's best to avoid squashing/force pushing even for small changes since it rewrites the history and can make reviewing the PR more difficult 🙂 |
Removed 2 lines for updating
WeakKeyDictionaryobjects by keyword arguments. This did not work correctly because weak references tostrobjects are not supported.Added clear exception that keyword arguments are not supported in
update()method.