Ticket #522 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.
