gh-112026: Deprecate _PyDict_GetItemStringWithError() function#119855
Conversation
|
The function was removed in Python 3.13 alpha1 and added back to Python 3.13 alpha2 by #112119. |
Sorry, something went wrong.
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
I do not think we should bother with deprecating the internal C API. It can be removed or changed in incompatible way at any time.
Sorry, something went wrong.
|
|
Sorry, something went wrong.
|
numpy and other projects used it. numpy was updated to use PyDict_GetItemStringRef() using pythoncapi-compat. |
Sorry, something went wrong.
`_PyDict_GetItemStringWithError ` was deprecated for Python 3.14 in python/cpython#119855. Use `PyDict_GetItemStringRef` instead. It was added in 3.13 but is available via `pythoncapi_compat.h`. https://docs.python.org/3/c-api/dict.html#c.PyDict_GetItemStringRef
edited by bedevere-app
Bot
LoadingUh oh!
There was an error while loading. Please reload this page.
Copy link Copy MarkdownSorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.