On Sep 25, 6:45 pm, cesarnda <[EMAIL PROTECTED]> wrote:
...
>   result = []
...
>       result.append(n)

...
> if I compile in the notebook I get a html file showing me the
> following lines in yellow:
>
> def primes(int kmax):
> result = []
> result.append(n)
> return result
>
> how can I modify this example to avoid the yellow lines?

As other people pointed out, there is not much hope for the "def" and
the "return" line.

But wouldn't it be possible to do
  cdef list result = []
?

And isn't there a quick, dirty and potentially unsafe way of appending
to a list? Or at least for assigning a value to some list entry? I
think I have seen it somewhere, but I don't remember the name.

Cheers
   Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to