Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix docstring for __radd__
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Feb 14, 2019
1 parent b902189 commit 642b659
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/rings/function_field/place.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ def __radd__(self, other):
sage: sum(K.places_finite())
Place (x) + Place (x + 1)
.. NOTE:
This does not work though::
Note that this does not work, as wanted::
sage: 0 + K.place_infinite()
Traceback (most recent call last):
Expand All @@ -224,8 +222,8 @@ def __radd__(self, other):
The reason is that the ``0`` is a Sage integer, for which
the coercion system applies.
"""
from .divisor import prime_divisor
if other == 0:
from .divisor import prime_divisor
return prime_divisor(self.function_field(), self)
raise NotImplementedError

Expand Down

0 comments on commit 642b659

Please sign in to comment.