Ticket #522 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

Decorator directives does not work with c(p)def functions

Reported by: dagss Owned by: somebody
Priority: major Milestone: 0.15
Component: Parsing Keywords:
Cc:

Description

From ML:

The first one is that it seems that we can no more combine cpdef and
decorator :

    @cython.boundscheck(False)
    @cython.wraparound(False)
    cpdef run(self,adjacencyMatrix_,nodesPosition_,int dimension,nbLink_):
   ^
------------------------------------------------------------

/homelocal/max/Memoire/Sources/CAttractionRepulsionAlgorithm.pyx:48:4:
Decorators can only be followed by functions

I have the same problem with cdef and I have not the problem with def.

The second problem is that it seems that we can nore more used
@cython.wraparound(False).
I have this error

    @cython.wraparound(False)
   ^
------------------------------------------------------------

/homelocal/max/Memoire/Sources/CAttractionRepulsionAlgorithm.pyx:47:4:
'wraparound' not a valid cython attribute or is being used incorrectly

and this error for the same line :

    @cython.wraparound(False)
   ^
------------------------------------------------------------

/homelocal/max/Memoire/Sources/CAttractionRepulsionAlgorithm.pyx:47:4:
'wraparound' not a valid cython language construct

Change History

Changed 4 years ago by dagss

  • milestone changed from 0.13 to 0.13.1

Changed 4 years ago by robertwb

  • summary changed from Wraparound does not work with cpdef etc. to Decorator directives does not work with c(p)def functions
  • milestone changed from 0.14 to 0.15

Changed 2 years ago by mark

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

This seems fixed in the release branch of 0.16.

Note: See TracTickets for help on using tickets.