Re: [sage-devel] cython string problem

2016-01-11 Thread Daniel Krenn
On 2016-01-10 21:20, Jeroen Demeyer wrote: > On 2016-01-10 18:26, Daniel Krenn wrote: >> This shows that the problem is += in >>s += self.separator.join(E) > > Are you sure? I already get a problem here: Nevermind; already solved. Thanks Daniel -- You received this message because you are

Re: [sage-devel] cython string problem

2016-01-10 Thread Jeroen Demeyer
On 2016-01-10 18:26, Daniel Krenn wrote: This shows that the problem is += in s += self.separator.join(E) Are you sure? I already get a problem here: /usr/local/src/sage-config/src/sage/data_structures/lazy_list.pyx in sage.data_structures.lazy_list.lazy_list_abstract.__repr__ (build/cyth

Re: [sage-devel] cython string problem

2016-01-10 Thread Daniel Krenn
On 2016-01-10 19:54, Vincent Delecroix wrote: > On 10/01/16 14:58, Daniel Krenn wrote: >> On 2016-01-10 18:46, John H Palmieri wrote: >>> Does "print E" initialize some variables or do anything relevant? >> >> None that I am aware of (E is a list of strings) > > Are you sure? I bet that self.more

Re: [sage-devel] cython string problem

2016-01-10 Thread Vincent Delecroix
On 10/01/16 14:58, Daniel Krenn wrote: On 2016-01-10 18:46, John H Palmieri wrote: Does "print E" initialize some variables or do anything relevant? None that I am aware of (E is a list of strings) Are you sure? I bet that self.more is None... is it initialized somewhere? you can run sage:

Re: [sage-devel] cython string problem

2016-01-10 Thread Daniel Krenn
On 2016-01-10 18:46, John H Palmieri wrote: > Does "print E" initialize some variables or do anything relevant? None that I am aware of (E is a list of strings) Daniel -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this gro

Re: [sage-devel] cython string problem

2016-01-10 Thread John H Palmieri
On Sunday, January 10, 2016 at 9:26:53 AM UTC-8, Daniel Krenn wrote: > > On 2016-01-10 15:18, Vincent Delecroix wrote: > > Would better to post to sage-support. > > F'up set > > > What about doing the test in the console? You can also change the > > doctest to > > > > m2.__repr__() > >

Re: [sage-devel] cython string problem

2016-01-10 Thread Daniel Krenn
On 2016-01-10 15:18, Vincent Delecroix wrote: > Would better to post to sage-support. F'up set > What about doing the test in the console? You can also change the > doctest to > > m2.__repr__() > > that would show the traceback. This shows that the problem is += in s += self.separator.jo

Re: [sage-devel] cython string problem

2016-01-10 Thread Vincent Delecroix
Would better to post to sage-support. What about doing the test in the console? You can also change the doctest to m2.__repr__() that would show the traceback. Vincent On 10/01/16 08:16, Daniel Krenn wrote: I am trying to rewrite some code and have troubles with the following code:

[sage-devel] cython string problem

2016-01-10 Thread Daniel Krenn
I am trying to rewrite some code and have troubles with the following code: cdef str s = self.name if s: s += ' ' s += self.opening_delimiter cdef list E = list('{!r}'.format(self.get(n)) for n in xrange(min(num_elts, self.prev