William Stein wrote: > On Mon, Oct 20, 2008 at 2:06 PM, pong <[EMAIL PROTECTED]> wrote: >> Thanks Marshall. I have thought about that as well. >> Since I want to optimize time. I want to see if your method is faster >> then a for loop. However, I run into something puzzling: >> >> vector( [k for k in range(10)]) results in an error. Sage compliant >> about >> >> TypeError: unable to find a common ring for all elements > > I get > > sage: vector( [k for k in range(10)]) > (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) > > Are you sure that's what you typed?
It seems like this error was fixed recently. Pong, what version of Sage are you running? Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---