Robert Bradshaw wrote: > On Sep 22, 2007, at 12:25 PM, Jaap Spies wrote: > >> Jaap Spies wrote: >> >>> But most of SAGE is still Python, so I stick to the more Pythonic >>> alternative! >>> >>> As a better name for irange I suggest now inrange, maybe that is more >>> intelligible: >>> >>> sage: sum(i for i in inrange(1, 10)) >>> 55 >>> >> >> I opened ticket #737 with patch. Ik really hope this will be accepted. > > Just to clarify, inrange is just an alias for > srange(include_endpoint=True), right? > > If this is the case, I don't think its worth having yet another range > function for the reasons already mentioned in these threads, and on Trac... > > - Robert > > >
No, inrange forces the user to give start and stop as analogue of the [a..b] notation. And I keep repeating that it has 'educational' impact as the Pythonic way to go. Jaap --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
