Re: [Cython] Two generators in one function

2013-02-13 Thread David Roe
Thanks. David On Wed, Feb 13, 2013 at 10:29 PM, Robert Bradshaw wrote: > This is due to the archaic --disable-function-redefinition flag. > > On Mon, Feb 4, 2013 at 4:28 PM, David Roe wrote: > > Hi everyone, > > I ran into the following problem using Cython 0.17.4 (current version of > > Sage).

Re: [Cython] Two generators in one function

2013-02-13 Thread Robert Bradshaw
This is due to the archaic --disable-function-redefinition flag. On Mon, Feb 4, 2013 at 4:28 PM, David Roe wrote: > Hi everyone, > I ran into the following problem using Cython 0.17.4 (current version of > Sage). > > If you try to compile a file with the following function in it: > > def test_dou

[Cython] Two generators in one function

2013-02-04 Thread David Roe
Hi everyone, I ran into the following problem using Cython 0.17.4 (current version of Sage). If you try to compile a file with the following function in it: def test_double_gen(L): a = all(x != 0 for x in L) b = all(x != 1 for x in L) return a and b you get errors from the Cython com