comparison tests/test_parse_files/test_functiondef_decorators.py @ 65:ce5e27a3f277

Add ClassDef.decorator_list support.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 13 Jun 2016 01:27:10 +0100
parents 53817b39f139
children
comparison
equal deleted inserted replaced
64:53817b39f139 65:ce5e27a3f277
2 @cython.locals(a=int) 2 @cython.locals(a=int)
3 @cython.returns(int) 3 @cython.returns(int)
4 @cython.cfunc 4 @cython.cfunc
5 def id(a): 5 def id(a):
6 return a 6 return a
7 @cython.cclass
8 class Coucou(object):
9 pass
7 print(id(5)) 10 print(id(5))