On Jul 31, 2011, at 11:00 , William Stein wrote: > On Sun, Jul 31, 2011 at 10:54 AM, Justin C. Walker <[email protected]> wrote: >> >> On Jul 31, 2011, at 02:29 , tvn wrote: >> >>> The enumerate function in Python has the index type as 'int' instead of say >>> sage's Integer. is there an equivalent of enumerate in Sage that returns >>> Integer type ? Thanks >> >> Try srange and sxrange/xsrange. > > Those do something different -- they give a range of values.
Don't you think I knew that? I was just making sure someone was paying attention :-} I confused myself while playing around with examples, and took a wrong turn. Mille pardons... Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds ----------- Like the ski resort full of girls hunting for husbands and husbands hunting for girls, the situation is not as symmetrical as it might seem. - Alan MacKay -- -- 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 URL: http://www.sagemath.org
