Ticket #653 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Optimised builtin methods generate broken C code for subtypes

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.16
Component: Code Generation Keywords:


In code like this:

cdef class MyDict(dict):
    def test(self):
        for key, value in self.items():
            print((key, value))

Cython generates invalid C code for the PyDict_Items() function, incorrectly assuming it was an inherited method of an extension type.

Change History

Changed 3 years ago by scoder

  • owner changed from somebody to scoder

Changed 3 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from wishlist to 0.15.1

Changed 3 years ago by scoder

  • milestone changed from 0.15.1 to 0.16
Note: See TracTickets for help on using tickets.