From ad333c098c8b770a5a00a3005590512e5c9d6445 Mon Sep 17 00:00:00 2001 From: Gustavo Carneiro Date: Sun, 15 Mar 2020 20:23:09 +0000 Subject: [PATCH] fix #30 --- pybindgen/cppclass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index 4e6b8d9..32ce581 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -2233,7 +2233,8 @@ typedef struct { except KeyError: pass else: - dict_.setdefault("tp_call", call_method.wrapper_actual_name) + if call_method.wrapper_actual_name: + dict_.setdefault("tp_call", call_method.wrapper_actual_name) self.pytype.generate(code_sink)