On 5/24/07, David Harvey <[EMAIL PROTECTED]> wrote:
> But I don't want to dive into making a UnitaryRing subclass just to
> address this issue. We start getting problems because pyrex doesn't
> support multiple inheritance; for this reason we've been trying to
> keep the class hierarchy as simple as possible. For now it might be
> better to just put the _one_ attribute on CommutativeRing.

We definitely should add this.

The attribute for the zero element is "zero_element", e.g.,

 sage: ZZ.zero_element()
 0

Thus whatever name we use should be consistent with that.  E.g.,

  sage: ZZ.one_element()
  1

I like that a little better than "unit", since -1 is also a unit element.

William

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

Reply via email to