gh-124748: Fix handling kwargs in WeakKeyDictionary.update()#124783
gh-124748: Fix handling kwargs in WeakKeyDictionary.update()#124783kumaraditya303 merged 5 commits intopython:mainfrom
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 |
sobolevn
left a comment
There was a problem hiding this comment.
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 |
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 |
sobolevn
left a comment
There was a problem hiding this comment.
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 <mail@sobolevn.me> Co-authored-by: Tomas R <tomas.roun8@gmail.com>
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 🙂 |
sergey-miryanov
left a comment
There was a problem hiding this comment.
Code looks good to me.
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.