Ticket #12142: trac_12142-remove_cinit.patch

File trac_12142-remove_cinit.patch, 996 bytes (added by Peter Bruin, 10 years ago)
  • sage/rings/finite_rings/element_pari_ffelt.pyx

    # HG changeset patch
    # User Peter Bruin <peter.bruin@math.uzh.ch>
    # Date 1374075305 -7200
    # Node ID 57cd845bdd29f3760c3add63c56615b0d049add6
    # Parent  dc410370c7468150155d44b2b9f5e0339c8fd961
    Trac 12142: replace __cinit__ (Cython constructor) by a comment
    
    diff --git a/sage/rings/finite_rings/element_pari_ffelt.pyx b/sage/rings/finite_rings/element_pari_ffelt.pyx
    a b  
    144144        self._parent = parent
    145145        self.construct_from(x)
    146146
    147     def __cinit__(FiniteFieldElement_pari_ffelt self):
    148         """
    149         Cython constructor.
    150         """
    151         self.block = NULL
     147    # The Cython constructor __cinit__ is not necessary: according to
     148    # the Cython documentation, C attributes are initialised to 0.
     149    # def __cinit__(FiniteFieldElement_pari_ffelt self):
     150    #     self.block = NULL
    152151
    153152    def __dealloc__(FiniteFieldElement_pari_ffelt self):
    154153        """