Re: [Cython] Possible bug when using cython -Wextra

2013-02-14 Thread mark florisson
On 14 February 2013 05:08, Robert Bradshaw wrote: > On Thu, Feb 7, 2013 at 10:05 AM, Stefan Behnel wrote: >> Samuele Kaplun, 07.02.2013 13:00: >>> In data giovedì 7 febbraio 2013 12:11:47, Stefan Behnel ha scritto: > [...] > > def test(): > cdef int i > > for i fro

Re: [Cython] Possible bug when using cython -Wextra

2013-02-13 Thread Robert Bradshaw
On Thu, Feb 7, 2013 at 10:05 AM, Stefan Behnel wrote: > Samuele Kaplun, 07.02.2013 13:00: >> In data giovedì 7 febbraio 2013 12:11:47, Stefan Behnel ha scritto: [...] def test(): cdef int i for i from 0 <= i < 10: print "foo" [...] >>> >

Re: [Cython] Possible bug when using cython -Wextra

2013-02-07 Thread Stefan Behnel
Samuele Kaplun, 07.02.2013 13:00: > In data giovedì 7 febbraio 2013 12:11:47, Stefan Behnel ha scritto: >>> [...] >>> >>> def test(): >>> cdef int i >>> >>> for i from 0 <= i < 10: >>> print "foo" >>> >>> [...] >> >> Yes, it actually is an unused variable in your code. There is

Re: [Cython] Possible bug when using cython -Wextra

2013-02-07 Thread Samuele Kaplun
Dear Stefan, In data giovedì 7 febbraio 2013 12:11:47, Stefan Behnel ha scritto: > > [...] > > > > def test(): > > cdef int i > > > > for i from 0 <= i < 10: > > print "foo" > > > > [...] > > Yes, it actually is an unused variable in your code. There is no reference > to it

Re: [Cython] Possible bug when using cython -Wextra

2013-02-07 Thread Stefan Behnel
Samuele Kaplun, 07.02.2013 10:16: > I am not sure if this is a bug or it is the intended behaviour, however, > consider for example this snippet: > > [...] > def test(): > cdef int i > for i from 0 <= i < 10: > print "foo" > [...] > > If I save it into x.pyx and compile it with:

[Cython] Possible bug when using cython -Wextra

2013-02-07 Thread Samuele Kaplun
Hello, I am not sure if this is a bug or it is the intended behaviour, however, consider for example this snippet: [...] def test(): cdef int i for i from 0 <= i < 10: print "foo" [...] If I save it into x.pyx and compile it with: $ cython -Wextra x.pyx I obtain the warning: [