On Thu, Oct 18, 2018 at 5:58 PM Kwankyu Lee <ekwan...@gmail.com> wrote: > (2) interval should be redefined to give a list of Integers. Do you agree?
I wouldn't change it, because that code that depends on how it works will break. And having a 1-year deprecation policy for this would be very ugly. Also, it doesn't start with "s" like srange and xsrange. Type "interval??" to see the source code of interval -- it's just a 1-line wrapper around range. That said, I didn't know about this function until just now, by the way. > (3) srange, xsrange are intended to be alternatives to range, for my purpose. They are versions in Sage, that behave more naturally wrt to their input types. > (4) is this "range" the vanilla python built-in? Yes. Type "range??" in Sage to see. > I suspect not because "range" accepts Integer input. If range was redefined > somewhere in sage to accept Integer as well as int, then perhaps range could > be redefined to give a list of Integers for Integer input and a list of ints > for int input. Am I wrong? > I would be wary of changing range, for fear of breaking code... > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.