PyCXX: update to version 7.0.0

This commit is contained in:
wmayer
2022-08-01 16:39:26 +02:00
parent 04615798ab
commit a2f509087e
16 changed files with 758 additions and 486 deletions

View File

@@ -139,10 +139,12 @@ namespace Py
args[0] = Object( self, true );
args[1] = Object( PyCObject_FromVoidPtr( method_def, do_not_dealloc ), true );
PyObject *func = PyCFunction_New
assert( m_module != NULL );
PyObject *func = PyCFunction_NewEx
(
&method_def->ext_meth_def,
new_reference_to( args )
new_reference_to( args ),
m_module
);
method_def->py_method = Object( func, true );