Ticket #373 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

bug in typed computed default arguments

Reported by: robertwb Owned by: somebody
Priority: critical Milestone: 0.12
Component: Code Generation Keywords:
Cc:

Description

cdef class Foo:
    def __cinit__(self, int arg=2*2):
        print arg

the constant for arg is never initialized

Change History

Changed 4 years ago by dagss

Can't reproduce? At least this passes:

cdef class MyClass:
    """
    >>> x=MyClass()
    4
    """
    def __cinit__(self, int arg=2*2):
        print arg

Changed 4 years ago by dagss

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