Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-91049: Introduce set vectorcall field API for PyFunctionObject#92257
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
9cf96ec282e3dcedcdcf1debf5a9473d18d76e8c9d33374591543f4408082bded9332724ffd3089cb4b23387d4ab0cc28a99e408524353c860f7769376ee7556ffc705340e87a5e9d1312faf5266234709149f14e732d7e84874fbFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -87,6 +87,7 @@ There are a few functions specific to Python functions. | ||||||
| Set the vectorcall field of a given function object *func* | ||||||
vstinner marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page.
| ||||||
| Set the vectorcall field of a given function object *func* | |
| Set the vectorcall field of a given function object *func*. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -237,7 +237,9 @@ New Features | ||||||
| (Contributed by Wenzel Jakob in :gh:`93012`.) | ||||||
| * Add new function :c:func:`PyFunction_SetVectorcall` to the C API | ||||||
| which sets the vectorcall field of a given :c:type:`PyFunctionObject` | ||||||
| ||||||
| which sets the vectorcall field of a given:c:type:`PyFunctionObject` | |
| which sets the vectorcall field of a given:c:type:`PyFunctionObject`. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I don't think that this document is the right place to put a warning. Why this warning is not in the documentation of the function?
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -673,7 +673,7 @@ def f(num): return num + 1 | ||
| function_setvectorcall(f) | ||
| # make sure specializer is triggered by running > 50 times | ||
| for _ in range(51): | ||
Fidget-Spinner marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| self.assertEqual("overridden",f(num)) | ||
| class A: | ||
| def method_two_args(self, x, y): | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,5 @@ | ||||||
| Add new function :c:func:`PyFunction_SetVectorcall` to the C API | ||||||
| which setsthe vectorcall field ofa given :c:type:`PyFunctionObject` | ||||||
| ||||||
| which sets the vectorcall field of a given:c:type:`PyFunctionObject` | |
| which sets the vectorcall field of a given:c:type:`PyFunctionObject`. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please remove this warning.