GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — gh-112026: Deprecate _PyDict_GetItemStringWithError() function by vstinner · Pull Request #119855 · python/cpython Conversation
|
|
The function was removed in Python 3.13 alpha1 and added back to Python 3.13 alpha2 by #112119. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
| Py_hash_t hash); | ||
| PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *); | ||
| // PyDict_GetItemStringRef() can be used instead | ||
| Py_DEPRECATED(3.14) PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe 3.13?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't like adding new compiler warnings after beta1. There is no urgency to remove it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
numpy and other projects used it. numpy was updated to use PyDict_GetItemStringRef() using pythoncapi-compat. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
`_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
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.