From 577e47634c4e0f4e978c919c20a9986ebdc9ad34 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Tue, 22 Jun 2021 14:03:11 +0200 Subject: [PATCH] improve docstring --- src/sage/interfaces/fricas.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sage/interfaces/fricas.py b/src/sage/interfaces/fricas.py index 2be56052a83..faac5e29fff 100644 --- a/src/sage/interfaces/fricas.py +++ b/src/sage/interfaces/fricas.py @@ -1281,8 +1281,7 @@ def _parse_list(s, start=0): @staticmethod def _parse_other(s, start=0, make_fun=False): - """ - Parse the initial part of a string, assuming that it is an + """Parse the initial part of a string, assuming that it is an atom, but not a string. Symbols and numbers must not contain ``FriCASElement._WHITESPACE`` and @@ -1305,8 +1304,10 @@ def _parse_other(s, start=0, make_fun=False): sage: FriCASElement._parse_other("abc -1.23", 4) (-1.23, 8) - This function cannot us the symbol table to translate symbols - which are not function calls, as :trac:`31849` shows:: + This function cannot use the symbol table to translate + symbols which are not function calls, as :trac:`31849` shows + - ``D`` would erroneously be interpreted as differential + then:: sage: var("D") D