[issue33829] C API: provide new object protocol helper
Bartosz Gołaszewski
report at bugs.python.org
Mon Jun 11 05:54:30 EDT 2018
New submission from Bartosz Gołaszewski <bartekgola at gmail.com>:
If we want to call an object's method from C code and pass it the args and kwargs tuples unchanged, we need to first retrieve the callable object using PyObject_GetAttrString(), then call it using PyObject_Call().
I would like to propose wrapping the two calls in a new helper.
----------
components: Extension Modules
messages: 319288
nosy: Bartosz Gołaszewski
priority: normal
severity: normal
status: open
title: C API: provide new object protocol helper
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33829>
_______________________________________
More information about the Python-bugs-list
mailing list