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
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"
[...]
>>>
>
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
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
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:
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:
[