Skip to content

Commit cce6edf

Browse files
committed
suggested details + imperative Return
1 parent 93cb157 commit cce6edf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/sage/interfaces/singular.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def _coerce_map_from_(self, S):
829829

830830
def cputime(self, t=None):
831831
r"""
832-
Returns the amount of CPU time that the Singular session has used.
832+
Return the amount of CPU time that the Singular session has used.
833833
If ``t`` is not None, then it returns the difference
834834
between the current CPU time and ``t``.
835835
@@ -1181,7 +1181,7 @@ def set_ring(self, R):
11811181

11821182
def current_ring_name(self):
11831183
"""
1184-
Returns the Singular name of the currently active ring in
1184+
Return the Singular name of the currently active ring in
11851185
Singular.
11861186
11871187
OUTPUT: currently active ring's name
@@ -1202,7 +1202,7 @@ def current_ring_name(self):
12021202

12031203
def current_ring(self):
12041204
"""
1205-
Returns the current ring of the running Singular session.
1205+
Return the current ring of the running Singular session.
12061206
12071207
EXAMPLES::
12081208
@@ -1327,7 +1327,7 @@ def option(self, cmd=None, val=None):
13271327
# SingularFunction(self,"option")("\"set\"",val)
13281328
self.eval("option(set,%s)" % val.name())
13291329
else:
1330-
SingularFunction(self, "option")("\"" + str(cmd) + "\"")
1330+
SingularFunction(self, "option")(f'"{str(cmd)}"')
13311331

13321332
def _keyboard_interrupt(self):
13331333
print("Interrupting %s..." % self)
@@ -1406,7 +1406,7 @@ def _repr_(self):
14061406

14071407
def __copy__(self):
14081408
r"""
1409-
Returns a copy of ``self``.
1409+
Return a copy of ``self``.
14101410
14111411
EXAMPLES::
14121412
@@ -1458,7 +1458,7 @@ def __copy__(self):
14581458

14591459
def __len__(self):
14601460
"""
1461-
Returns the size of this Singular element.
1461+
Return the size of this Singular element.
14621462
14631463
EXAMPLES::
14641464
@@ -1514,7 +1514,7 @@ def __setitem__(self, n, value):
15141514

15151515
def __bool__(self):
15161516
"""
1517-
Returns ``True`` if this Singular element is not zero.
1517+
Return ``True`` if this Singular element is not zero.
15181518
15191519
EXAMPLES::
15201520
@@ -1699,7 +1699,7 @@ def sage_global_ring(self):
16991699

17001700
def sage_poly(self, R=None, kcache=None):
17011701
"""
1702-
Returns a Sage polynomial in the ring r matching the provided poly
1702+
Return a Sage polynomial in the ring r matching the provided poly
17031703
which is a singular polynomial.
17041704
17051705
INPUT:
@@ -1910,7 +1910,7 @@ def sage_poly(self, R=None, kcache=None):
19101910

19111911
def sage_matrix(self, R, sparse=True):
19121912
"""
1913-
Returns Sage matrix for self
1913+
Return Sage matrix for ``self``.
19141914
19151915
INPUT:
19161916
@@ -2155,7 +2155,7 @@ def sage_structured_str_list(self):
21552155

21562156
def _tab_completion(self):
21572157
"""
2158-
Returns the possible tab-completions for self. In this case, we
2158+
Return the possible tab-completions for self. In this case, we
21592159
just return all the tab completions for the Singular object.
21602160
21612161
EXAMPLES::
@@ -2170,7 +2170,7 @@ def _tab_completion(self):
21702170

21712171
def type(self):
21722172
"""
2173-
Returns the internal type of this element.
2173+
Return the internal type of this element.
21742174
21752175
EXAMPLES::
21762176

0 commit comments

Comments
 (0)