@@ -829,7 +829,7 @@ def _coerce_map_from_(self, S):
829
829
830
830
def cputime (self , t = None ):
831
831
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.
833
833
If ``t`` is not None, then it returns the difference
834
834
between the current CPU time and ``t``.
835
835
@@ -1181,7 +1181,7 @@ def set_ring(self, R):
1181
1181
1182
1182
def current_ring_name (self ):
1183
1183
"""
1184
- Returns the Singular name of the currently active ring in
1184
+ Return the Singular name of the currently active ring in
1185
1185
Singular.
1186
1186
1187
1187
OUTPUT: currently active ring's name
@@ -1202,7 +1202,7 @@ def current_ring_name(self):
1202
1202
1203
1203
def current_ring (self ):
1204
1204
"""
1205
- Returns the current ring of the running Singular session.
1205
+ Return the current ring of the running Singular session.
1206
1206
1207
1207
EXAMPLES::
1208
1208
@@ -1327,7 +1327,7 @@ def option(self, cmd=None, val=None):
1327
1327
# SingularFunction(self,"option")("\"set\"",val)
1328
1328
self .eval ("option(set,%s)" % val .name ())
1329
1329
else :
1330
- SingularFunction (self , "option" )(" \" " + str (cmd ) + " \" " )
1330
+ SingularFunction (self , "option" )(f'" { str (cmd )} "' )
1331
1331
1332
1332
def _keyboard_interrupt (self ):
1333
1333
print ("Interrupting %s..." % self )
@@ -1406,7 +1406,7 @@ def _repr_(self):
1406
1406
1407
1407
def __copy__ (self ):
1408
1408
r"""
1409
- Returns a copy of ``self``.
1409
+ Return a copy of ``self``.
1410
1410
1411
1411
EXAMPLES::
1412
1412
@@ -1458,7 +1458,7 @@ def __copy__(self):
1458
1458
1459
1459
def __len__ (self ):
1460
1460
"""
1461
- Returns the size of this Singular element.
1461
+ Return the size of this Singular element.
1462
1462
1463
1463
EXAMPLES::
1464
1464
@@ -1514,7 +1514,7 @@ def __setitem__(self, n, value):
1514
1514
1515
1515
def __bool__ (self ):
1516
1516
"""
1517
- Returns ``True`` if this Singular element is not zero.
1517
+ Return ``True`` if this Singular element is not zero.
1518
1518
1519
1519
EXAMPLES::
1520
1520
@@ -1699,7 +1699,7 @@ def sage_global_ring(self):
1699
1699
1700
1700
def sage_poly (self , R = None , kcache = None ):
1701
1701
"""
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
1703
1703
which is a singular polynomial.
1704
1704
1705
1705
INPUT:
@@ -1910,7 +1910,7 @@ def sage_poly(self, R=None, kcache=None):
1910
1910
1911
1911
def sage_matrix (self , R , sparse = True ):
1912
1912
"""
1913
- Returns Sage matrix for self
1913
+ Return Sage matrix for `` self``.
1914
1914
1915
1915
INPUT:
1916
1916
@@ -2155,7 +2155,7 @@ def sage_structured_str_list(self):
2155
2155
2156
2156
def _tab_completion (self ):
2157
2157
"""
2158
- Returns the possible tab-completions for self. In this case, we
2158
+ Return the possible tab-completions for self. In this case, we
2159
2159
just return all the tab completions for the Singular object.
2160
2160
2161
2161
EXAMPLES::
@@ -2170,7 +2170,7 @@ def _tab_completion(self):
2170
2170
2171
2171
def type (self ):
2172
2172
"""
2173
- Returns the internal type of this element.
2173
+ Return the internal type of this element.
2174
2174
2175
2175
EXAMPLES::
2176
2176
0 commit comments