On Wednesday, December 9, 2015 at 6:19:54 PM UTC-8, vdelecroix wrote:
>
> Apparently, I need to define avma as 
>
>      global avma 
>
> (with that everything works fine). It is not clear to me why... 
>

Looks like standard python scoping rules to me: if a variable is assigned 
to in a function body, then it is a local variable, unless it's explicitly 
declared "global". Cython has to follow that rule for all identifiers that 
are not "cdef" in the local scope in order to maintain compatibility with 
python.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to