Hi Jason, On Sep 8, 10:58 am, Jason Grout <jason-s...@creativetrax.com> wrote: > This seems really odd to me. I expected to get back n() applied to each > element of the list. > > sage: n([1,2]) > 1.00000000000000 + 2.00000000000000*I > > Does anyone else find this behavior uncomfortable?
Not I, at least. AFAIK, there are only very few (no?) functions that, when applied to a list, are in fact applied to the individual members of the list. Generally >>> L= some list definition >>> [f(x) for x in L] is the way to go in Python, IMO. Best regards Simon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---