# HG changeset patch
# User Maarten Derickx <m.derickx.student@gmail.com>
# Date 1279364025 7200
# Node ID 34508590063dc7103ae515af67e6e8bef2263580
# Parent 45cb12f71be4aa5caefdf85a719c514fb680c0d4
This fixes all of the doctest failures in 9054. Depends on 9094
diff r 45cb12f71be4 r 34508590063d sage/categories/all.py
a

b


43  43  from quotient_fields import QuotientFields 
44  44  from finite_fields import FiniteFields 
45  45  from number_fields import NumberFields 
 46  from function_fields import FunctionFields 
46  47  
47  48  # modules 
48  49  from left_modules import LeftModules 
diff r 45cb12f71be4 r 34508590063d sage/matrix/matrix2.pyx
a

b


4202  4202  sage: C.echelon_form() 
4203  4203  Traceback (most recent call last): 
4204  4204  ... 
4205   NotImplementedError: Echelon form not implemented over 'Univariate Polynomial Ring in x over Integer Ring'. 
 4205  NotImplementedError: Ideal Ideal (2, x + 1) of Univariate Polynomial Ring in x over Integer Ring not principal 
 4206  Echelon form not implemented over 'Univariate Polynomial Ring in x over Integer Ring'. 
4206  4207  sage: C = matrix(3,[2,x,x^2,x+1,3x,1,3,2,1/2]) 
4207  4208  sage: C.echelon_form() 
4208  4209  [ 2 x x^2] 
diff r 45cb12f71be4 r 34508590063d sage/modules/free_module.py
a

b


4806  4806  if len(B) == 0: 
4807  4807  return 1 
4808  4808  d = B[0].denominator() 
 4809  if type(d) == int: 
 4810  d = sage.rings.integer.Integer(d) 
4809  4811  for x in B[1:]: 
4810  4812  d = d.lcm(x.denominator()) 
4811  4813  return d 
diff r 45cb12f71be4 r 34508590063d sage/rings/fraction_field_element.pyx
a

b


1107  1107  (<FractionFieldElement>other).__denominator, 
1108  1108  self.__denominator*(<FractionFieldElement>other).__numerator) 
1109  1109  
1110   def valuation(self): 
 1110  def valuation(self,v=None): 
1111  1111  """ 
1112  1112  Return the valuation of self, assuming that the numerator and 
1113  1113  denominator have valuation functions defined on them. 
… 
… 

1121  1121  sage: f.valuation() 
1122  1122  1 
1123  1123  """ 
1124   return self.__numerator.valuation()  self.__denominator.valuation() 
 1124  return self.__numerator.valuation(v)  self.__denominator.valuation(v) 
1125  1125  
1126  1126  def __nonzero__(self): 
1127  1127  """ 