> Hi there,
>
> many classes in SAGE implement and test for is_zero. I think these methods
> should be replaced with __nonzero__ methods, as this is the standard way
> of
> doing such a test in Python. For example,  int doesn't have a is_zero(),
> such
> that one would have to test for a type (of a return value) first.

+1, and document this in structure.element.

Nick


--~--~---------~--~----~------------~-------~--~----~
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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to