Changeset 4181:02af262c709a


Ignore:
Timestamp:
04/29/07 12:50:00 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Message:

Another bug fix from Kyle Schalm:

i think we also need to make this change in FractionFieldElement?.init:

if reduce:

-->

if reduce and parent.is_exact():

since the constructor is being called from many different places (for
example, from any use of +, -, *, /).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/fraction_field_element.py

    r2725 r4181  
    5757            self.__numerator = numerator 
    5858            self.__denominator = denominator 
    59         if reduce: 
     59        if reduce and parent.is_exact(): 
    6060            try: 
    6161                self.reduce() 
Note: See TracChangeset for help on using the changeset viewer.