PyObject_HasAttrString check in virtual method wrappers does not work

Bug #400338 reported by Gustavo Carneiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyBindGen
Fix Released
Low
Unassigned

Bug Description

            r'if (!PyObject_HasAttrString(m_pyself, (char *) "_%s")) {' % self.method_name)

Because we have the "virtual method parent callers", also named _foo, PyObject_HasAttrString(m_pyself, (char *) "_%s") is always true. To have the desired effect we need to also check that the method is a PyCFunction.

Gustavo Carneiro (gjc)
Changed in pybindgen:
status: Confirmed → Fix Committed
Gustavo Carneiro (gjc)
Changed in pybindgen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.