Re: [sage-devel] testing docstrings

2017-08-04 Thread John Cremona
On 4 August 2017 at 15:46, Daniel Krenn wrote: > On 2017-08-04 16:32, John Cremona wrote: >> Is there a quicker way to check docstrings for syntax and appearance >> than "make doc" which takes a very long times as it builds all of the >> docs? I have only changed 3 files and want to keeping makin

Re: [sage-devel] testing docstrings

2017-08-04 Thread Daniel Krenn
On 2017-08-04 16:32, John Cremona wrote: > Is there a quicker way to check docstrings for syntax and appearance > than "make doc" which takes a very long times as it builds all of the > docs? I have only changed 3 files and want to keeping making the docs > on those. I suppose that after doing on

[sage-devel] testing docstrings

2017-08-04 Thread John Cremona
Is there a quicker way to check docstrings for syntax and appearance than "make doc" which takes a very long times as it builds all of the docs? I have only changed 3 files and want to keeping making the docs on those. I suppose that after doing one "make doc" which completes without failing then

Re: [sage-devel] Re: Possible Cython bug

2017-08-04 Thread Vincent Delecroix
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 ca

Re: [sage-devel] Re: Possible Cython bug

2017-08-04 Thread Vincent Delecroix
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 ..

[sage-devel] Re: Possible Cython bug

2017-08-04 Thread Nils Bruin
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): > ..