| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
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.
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.
| 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.
Maybe 3.13?
Sorry, something went wrong.
There was a problem hiding this comment.
I don't like adding new compiler warnings after beta1. There is no urgency to remove it.
Sorry, something went wrong.
|
_PyDict_GetItemStringWithError() is just a wrapper around PyDict_GetItemWithError(). There are no reasons of using it instead of your own wrapper around PyDict_GetItemWithError(). |
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
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.