[sage-devel] Re: Unit element of a ring

2007-05-24 Thread William Stein
Here's a patch to implement one_element. You have to do "sage -ba" after applying it since the auto dependence checking in setup.py isn't good enough yet (any volunteers to fix it?). -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel

[sage-devel] Re: Unit element of a ring

2007-05-24 Thread boothby
> Strong +1 for this. I can't believe we don't already have it :-) > > Not sure I would want it called _unit_ though, makes me think rather > of invertible elements. How about _one_, or _unity_? +1 for disambiguation of unit vs. unity. --~--~-~--~~~---~--~~ To po

[sage-devel] Re: Unit element of a ring

2007-05-24 Thread William Stein
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

[sage-devel] Re: Unit element of a ring

2007-05-24 Thread David Harvey
On May 24, 2007, at 2:31 PM, Mike Hansen wrote: > Would it be better to have a UnitaryRing subclass? It'd be a bit more > work but would be a bit more natural since not all rings have a unit. You're right. Currently in SAGE the CommutativeRing class is assumed to have a unit (algebraic geome

[sage-devel] Re: Unit element of a ring

2007-05-24 Thread Mike Hansen
Would it be better to have a UnitaryRing subclass? It'd be a bit more work but would be a bit more natural since not all rings have a unit. On 5/24/07, Nick Alexander <[EMAIL PROTECTED]> wrote: > > David Harvey <[EMAIL PROTECTED]> writes: > > > On May 24, 2007, at 1:53 PM, Michel wrote: > > > >>

[sage-devel] Re: Unit element of a ring

2007-05-24 Thread Nick Alexander
David Harvey <[EMAIL PROTECTED]> writes: > On May 24, 2007, at 1:53 PM, Michel wrote: > >> >> My apologies if I have misunderstood things. I am doing some pyrex >> programming and I see there are many pitfalls (like writing !=None :-) >> >> I encountered the following problem: >> If I understand

[sage-devel] Re: Unit element of a ring

2007-05-24 Thread David Harvey
On May 24, 2007, at 1:53 PM, Michel wrote: > > My apologies if I have misunderstood things. I am doing some pyrex > programming and I see there are many pitfalls (like writing !=None :-) > > I encountered the following problem: > If I understand correctly then rings have a _zero_element attribut