Ticket #355 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Bad ordering in [type ..., object ...] class declaration

Reported by: Joachim Saul Owned by: robertwb
Priority: critical Milestone: 0.11.3
Component: Code Generation Keywords:
Cc:

Description

#### _stypes.pxd ####
ctypedef public class Time [type MyTime_Type, object MyTimeObject]:
     cdef public double seconds

ctypedef public class Event [type MyEvent_Type, object MyEventObject]:
     cdef public Time time

#### _stypes.pyx ####
ctypedef public class Time [type MyTime_Type, object MyTimeObject]:
     def __init__(self, seconds):
         self.seconds = seconds

ctypedef public class Event [type MyEvent_Type, object MyEventObject]:
     def __init__(self, Time time):
         self.time = time

####

Change History

Changed 4 years ago by robertwb

  • status changed from new to closed
  • resolution set to fixed

 http://hg.cython.org/cython-devel/rev/97069bd04411

Really, there's no need to use typedefs internally, and this gets around any ordering issues.

Changed 4 years ago by robertwb

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 4 years ago by robertwb

  • owner changed from somebody to robertwb
  • status changed from reopened to new

Changed 4 years ago by robertwb

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.