From 642b659d6da40abb604ec0b156bb2f4b5c4be87f Mon Sep 17 00:00:00 2001 From: Kwankyu Lee Date: Thu, 14 Feb 2019 17:12:36 +0900 Subject: [PATCH] Fix docstring for __radd__ --- src/sage/rings/function_field/place.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sage/rings/function_field/place.py b/src/sage/rings/function_field/place.py index 0d443e897da..be414851bef 100644 --- a/src/sage/rings/function_field/place.py +++ b/src/sage/rings/function_field/place.py @@ -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): @@ -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