#6536: Constructor in sage.rings.number_field.order.Order calls a method of the
wrong class
---------------------------+------------------------------------------------
 Reporter:  davidloeffler  |       Owner:  was       
     Type:  defect         |      Status:  new       
 Priority:  trivial        |   Milestone:  sage-4.1.1
Component:  number theory  |    Keywords:            
 Reviewer:                 |      Author:            
   Merged:                 |  
---------------------------+------------------------------------------------
Description changed by davidloeffler:

Old description:

> At the moment the {{{__init__}}} method of class
> {{{sage.rings.number_field.order.Order}}} calls
> {{{DedekindDomain.__init__}}}, despite the fact that {{{Order}}} doesn't
> inherit from {{{DedekindDomain}}}. This hasn't caused any problems yet,
> since {{{DedekindDomain}}} inherits its {{{__init__}}} function from
> {{{IntegralDomain}}} (which *is* the correct base class for {{{Order}}}).
> But nonetheless it is sloppy coding, and if the Dedekind domain class is
> either deleted or added to it will cause weird behaviour.
>

> inherits from {{{sage.rings.ring.IntegralDomain}}}, but its
> {{{__init__}}} method , despite the fact that

New description:

 At the moment the {{{__init__}}} method of class
 {{{sage.rings.number_field.order.Order}}} calls
 {{{DedekindDomain.__init__}}}, despite the fact that {{{Order}}} doesn't
 inherit from {{{DedekindDomain}}}. This hasn't caused any problems yet,
 since {{{DedekindDomain}}} inherits its {{{__init__}}} function from
 {{{IntegralDomain}}} (which /is/ the correct base class for {{{Order}}}).
 But nonetheless it is sloppy coding, and if the Dedekind domain class is
 either deleted or added to it will cause weird behaviour.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6536#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to