Ticket #589 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from new to assigned

Changed 3 years ago by scoder

  • status changed from assigned to closed
  • resolution set to fixed
  • component changed from Type Analysis to Python Semantics
Note: See TracTickets for help on using tickets.