Hi Mike,
This looks kind of silly:
sage: Partitions('mike hansen')
Partitions of the integer mike hansen
sage: Partitions([1..4])
Partitions of the integer [1, 2, 3, 4]
sage: list(Partitions([1..4]))
Could you add some type checking to Partitions, e.g., an isinstance?
More generally (addressed to sage-devel), do people have a general
impression that
we should be doing more type checking on user facing functions than we
currently do?
Has anybody written snippets of code for making some of this
systematic, and they
actually liked said code?
-- William
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---