Robert Bradshaw wrote: >> Why not define a new function srange (short for sagerange), >> or redefine the existing srange function: >> >> def srange(a,b=None,step=1, include_endpoint=True): >> >> or something like that. >> >> See sage: srange?? >> >> Alternative: reuse xrange >> this function will be removed from Python in Python3000. > > One disadvantage of this is that include_endpoint=True takes much > more time to write than "+1", and requires the same amount of > knowledge. Perhaps one could have a function "full_range" that > includes the endpoint.
Sorry, I meant this to be the default action. Jaap --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---