Re: [sage-support] Re: Cython and PARI avma

2015-12-09 Thread Jeroen Demeyer
On 2015-12-10 03:25, Nils Bruin wrote: Looks like standard python scoping rules to me Right. However, I must agree with Vincent that those rules can be confusing. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group

[sage-support] Re: Cython and PARI avma

2015-12-09 Thread Nils Bruin
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 b

[sage-support] Re: Cython and PARI avma

2015-12-09 Thread Vincent Delecroix
Apparently, I need to define avma as global avma (with that everything works fine). It is not clear to me why... On 09/12/15 22:59, Vincent Delecroix wrote: Hello, I tried to use PARI inside some Cython code in Sage. Apparently, it is not happy with the declaration of avma from paridecl (