On Thursday 03 April 2008 15:14, John Cremona wrote: > We have to regard 0 as a special case, I don't think there's any point > in pretending otherwise. If all leading zeros were stripped off in > all cases then the string representing 0 would be the empty string, > and obviously that would be silly.
Certainly, 0 is a special case (and the example of string is crystal clear). However, the question is which way more users of 'digits' want the results. Not having a list of uses (and future uses!) of 'digits' on hand at the moment, it's a bit of a shot in the dark which special casing might be preferred. I think that the most likely correct answer for general cases is the empty list (after all, we'd like to not pass on the special case to the end-user more than we have to.) -- Joel --~--~---------~--~----~------------~-------~--~----~ 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---