On 2017-08-04 10:49, Vincent Delecroix wrote:
Indeed, this is a subtle issue
Cython thinks that F is a sequence because Family does support the
sequence protocol (this is lost somewhere in the macro
__Pyx_GetItemInt). As a consequence, Cython translates a negative index
"-i" into "len(sequence)
Indeed, this is a subtle issue
Cython thinks that F is a sequence because Family does support the
sequence protocol (this is lost somewhere in the macro
__Pyx_GetItemInt). As a consequence, Cython translates a negative index
"-i" into "len(sequence) - i". Which is indeed wrong in the above
On 04/08/2017 10:27, Nils Bruin wrote:
On Thursday, August 3, 2017 at 7:58:50 PM UTC+2, Travis Scrimshaw wrote:
Hey all,
I think I have come across a possible Cython bug, but I am not sure. I
am using 8.1beta0. Here is as small of a working example as I can currently
get.
sage: %%cython
On Thursday, August 3, 2017 at 7:58:50 PM UTC+2, Travis Scrimshaw wrote:
>
> Hey all,
>I think I have come across a possible Cython bug, but I am not sure. I
> am using 8.1beta0. Here is as small of a working example as I can currently
> get.
>
> sage: %%cython
> : def foo(F, int i):
>
FYI - This also occurs within a compiled Cython file within Sage (which is
how I first came across this).
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
FYI - This also occurs within a compiled Cython file I am working on within
Sage (which is how I first came across this).
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an