Skip to content

Commit

Permalink
Fix some doctest issues, see trac #2257.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcitro committed Feb 22, 2008
1 parent 199e613 commit 1c673ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/sage/rings/number_field/number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -2616,10 +2616,8 @@ def uniformizer(self, P, others = "positive"):
[True, True, True]
sage: [pi.valuation(P) for pi,P in zip(pilist,Plist)]
[1, 1, 1]
sage: [Plist[i]==K.ideal(pilist[i]) for i in range(len(Plist))]
[True, False, True]
sage: [ pilist[i] in Plist[i] for i in range(len(Plist)) ]
[True, True, True]
"""
if not is_NumberFieldIdeal(P):
P = self.ideal(P)
Expand Down
6 changes: 4 additions & 2 deletions src/sage/rings/number_field/number_field_ideal.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,9 +864,11 @@ def prime_factors(self):
EXAMPLES:
sage: K.<w> = NumberField(x^2 + 23)
sage: I = ideal(w*23^5)
sage: I = ideal(w+1)
sage: I.prime_factors()
[Fractional ideal (-w)]
[Fractional ideal (2, 1/2*w - 1/2),
Fractional ideal (2, 1/2*w + 1/2),
Fractional ideal (3, -1/2*w - 1/2)]
"""
return [x[0] for x in self.factor()]

Expand Down

0 comments on commit 1c673ed

Please sign in to comment.