comparison tests/test_parse_files/test_decorators.py @ 70:c9b9165abb9e

Rename test_functiondef_decorators to test_decorators as it contains a test for classdef decorators too.
author Bastien Orivel <eijebong@bananium.fr>
date Mon, 13 Jun 2016 17:56:38 +0200
parents tests/test_parse_files/test_functiondef_decorators.py@ce5e27a3f277
children
comparison
equal deleted inserted replaced
69:a73eaf42bea1 70:c9b9165abb9e
1 import cython
2 @cython.locals(a=int)
3 @cython.returns(int)
4 @cython.cfunc
5 def id(a):
6 return a
7 @cython.cclass
8 class Coucou(object):
9 pass
10 print(id(5))