Ticket #589 (closed defect: fixed)
optimised builtin methods are not assignable as bound methods
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.14 |
| Component: | Python Semantics | Keywords: | |
| Cc: |
Description
Unbound methods work, however, assigning an optimised bound method fails during type analysis:
cdef set s = {0,1,2}
clear = s.clear # fails here
clear()
The error message is
Cannot convert 'int (set) except -1' to Python object
which indicates that the method was mapped to a C function which Cython then cannot assign to a (Python) variable anymore.
Change History
Note: See
TracTickets for help on using
tickets.
