New submission from Bartosz Gołaszewski <bartekg...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33829>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to