| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
If the following functions get an unexpected frozendict, raise a TypeError with an useful error message: * PyDict_DelItem() * PyDict_DelItemString() * PyDict_Merge() * PyDict_MergeFromSeq2() * PyDict_Pop() * PyDict_PopString() * PyDict_SetDefault() * PyDict_SetDefaultRef() * PyDict_SetItem() * PyDict_SetItemString() * _PyDict_SetItem_KnownHash() * PyDict_Update() Co-Authored-by: mohsinm-dev <mohsin.mdev@gmail.com>
|
This change raises a nice TypeError exception with an useful error message when a frozendict is passed to a PyDict function which tries to modify it (ex: PyDict_SetItem). The initial version of the code is based on PR gh-145123. |
Sorry, something went wrong.
There was a problem hiding this comment.
Generally looks good to me, but let me take a look til this weekend.
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
|
Merged. Thanks for the review @corona10. |
Sorry, something went wrong.
…ython#145564) If the following functions get an unexpected frozendict, raise TypeError instead of SystemError: * PyDict_DelItem() * PyDict_DelItemString() * PyDict_Merge() * PyDict_MergeFromSeq2() * PyDict_Pop() * PyDict_PopString() * PyDict_SetDefault() * PyDict_SetDefaultRef() * PyDict_SetItem() * PyDict_SetItemString() * _PyDict_SetItem_KnownHash() * PyDict_Update() Co-authored-by: mohsinm-dev <mohsin.mdev@gmail.com>
| Back | FazBrowse Home | New Git URL |
If the following functions get an unexpected frozendict, raise a TypeError with an useful error message: