Mercurial > pub > dyncall > bindings
changeset 65:75a4082f0fce
- refactoring of deprecated/removed func PyEval_CallObject()
author | Tassilo Philipp |
---|---|
date | Sun, 19 May 2024 15:45:13 +0200 |
parents | 6c494834e52a |
children | 7a61dd082341 |
files | python/pydc/pydc.c python/pydc/setup.py |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/python/pydc/pydc.c Sun May 19 15:35:03 2024 +0200 +++ b/python/pydc/pydc.c Sun May 19 15:45:13 2024 +0200 @@ -592,7 +592,6 @@ /* generic callback handler dispatching to python */ static char handle_py_callbacks(DCCallback* pcb, DCArgs* args, DCValue* result, void* userdata) { - struct callback_userdata* x = (struct callback_userdata*)userdata; const char* sig_ptr = x->sig; @@ -634,7 +633,7 @@ // we must be at end of sigstring, here if(ch == ')') { - po = PyEval_CallObject(x->f, py_args); + po = PyObject_CallObject(x->f, py_args); if(po) { // return value type
--- a/python/pydc/setup.py Sun May 19 15:35:03 2024 +0200 +++ b/python/pydc/setup.py Sun May 19 15:45:13 2024 +0200 @@ -7,7 +7,7 @@ setup( name = 'pydc' -, version = '1.4.2' +, version = '1.4.3' , author = 'Daniel Adler, Tassilo Philipp' , author_email = 'dadler@dyncall.org, tphilip@dyncall.org' , maintainer = 'Daniel Adler, Tassilo Philipp'