---------- Forwarded message ----------
From: Timothy Clemans <[EMAIL PROTECTED]>
Date: Jan 26, 2007 10:41 AM
Subject: bug in sage interface to pari?
To: William Stein <[EMAIL PROTECTED]>


Is the following, my own fault or a bug in sage?

def nprimes(n):
 nprimes = []
 for i in range(n):
  nprimes.append(gp("prime(i)"))
 return nprimes

produces:

<type 'exceptions.TypeError'>: Error executing code in GP/PARI:
CODE:
        sage[3]=prime(i);
GP/PARI ERROR:
  ***   this should be an integer: sage[3]=prime(i);
                                                 ^---

--~--~---------~--~----~------------~-------~--~----~
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to