> Note that you're skipping the last conductor in the database, I > think... DB.conductor_range? indicates that the returned values > represent an inclusive range, but range/xrange/etc. take their second > argument as an exclusive bound. (This is easy to fix with the above > xrange expression, but I don't see how to fix it with the simple *args > syntax.) >
Touche. I can find *a* way to fix it, but only at the cost of making it significantly uglier and more fragile than the original use of an anonymous lambda: sage: t = (1,10) sage: srange(*(list(t) + [1,ZZ,False,True])) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Clearly that's not the way to go in general ... I think the lambda is much nicer in this case. (To be fair, Scheme is still the language closest to my heart, so I may be biased.) -cc --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
