-
-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
describe PyEval_CallObjectWithKeywords and its replacement #86347
Comments
|
The current 3.9 docs do not describe PyEval_CallObjectWithKeywords, among other PyEval_CallObject* functions. Yes, I know, these functions are deprecated. But they are still part of the API; they ought to be documented. Rather, given that they are deprecated, there is more need than ever to document them: The documentation should specify when they have been deprecated, until then they are guaranteed to be supported, and most importantly, how they are to be replaced. Fulltext search leads me to the 3.9 Changelog that says: »PyEval_CallFunction, PyEval_CallMethod and PyEval_CallObjectWithKeywords are deprecated. Use PyObject_Call() and its variants instead.« This is far not enough. As a maintainer of 3rd-party code with no knowledge of and no interest in the Python C API, I do not want to spend half a day on finding out which variant to use, and how argument lists differ. |
|
+1. Just searching how should I replace that… |
|
In the end I had to replace with so I think that the decision to deprecate the former was made without appropriate consideration (replacement is much longer and I had to use private function). |
|
I'm seeing this deprecation warning now and I'm not sure what to do about it. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: