About local variable definitions in functions

10 views
Skip to first unread message

Zaur Shibzukhov

unread,
May 20, 2013, 2:35:45 AM5/20/13
to cython...@googlegroups.com
Let's consider use case. One is use .py file and .pxd file for type annotation.
Currently if someone need local variable definitions he uses @locals(...) decorator.

I'm wonder if Cython syntac could be extended to allowing something like following inside of .pxd:

cdef int func(int a):
   cdef int i, j
   cdef bint flag


Is it a good idea?
Reply all
Reply to author
Forward
0 new messages