Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#653 closed defect (fixed)

Optimised builtin methods generate broken C code for subtypes

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

Description

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 (3)

comment:1 Changed 3 years ago by scoder

  • Owner changed from somebody to scoder

comment:2 Changed 3 years ago by scoder

  • Milestone changed from wishlist to 0.15.1
  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 3 years ago by scoder

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