On Sunday, June 24, 2012 9:45:34 AM UTC+1, Simon King wrote: > > Shouldn't we rather duck typing?
Ideally, yes. So an even better solution would be try: X = range(1,X+1) except TypeError: pass Though it might conflict with other allowed input types of f.coefficient, I haven't checked. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org