sequence_methods + overloading = fail

Bug #401761 reported by Luis F. Teixeira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyBindGen
Fix Released
Undecided
Unassigned

Bug Description

Similarly to add_method, the add_function_as_method should support overloaded methods.

Currently the following assertion fails:
  File "C:\work\MarsyasX\marsyas\python2\pybindgen\cppclass.py", line 1668, in try_wrap_sequence_method
    assert len(self.methods[py_name].wrappers) == 1
AssertionError

Revision history for this message
Gustavo Carneiro (gjc) wrote :

Re-titling. If I read this correctly, it seems that this is not specific to add_function_as_method; it is more the case of the special handling that was added for __len__, __getitem__, and __setitem__ that does not support overloading, among other problems. As usual, I will have to clean up bugs introduced by other peoples' patches :P

summary: - add_function_as_method fails when declaring overloaded methods (using
- the same custom_name)
+ sequence_methods + overloading = fail
Changed in pybindgen:
status: New → Confirmed
Revision history for this message
Gustavo Carneiro (gjc) wrote :

I think this was fixed by Mike's patch.

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.