Skip to content

Commit db6bec5

Browse files
committed
Docstring edits
"0's" and "1's" to "0s" and "1s". Some more INPUT/OUTPUT refinements.
1 parent 6d8aa62 commit db6bec5

102 files changed

Lines changed: 511 additions & 592 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/sage/algebras/commutative_dga.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4173,7 +4173,7 @@ def exterior_algebra_basis(n, degrees):
41734173
- ``degrees`` -- iterable of integers
41744174
41754175
Return list of lists, each list representing exponents for the
4176-
corresponding generators. (So each list consists of 0's and 1's.)
4176+
corresponding generators. (So each list consists of 0s and 1s.)
41774177
41784178
EXAMPLES::
41794179

src/sage/algebras/letterplace/free_algebra_element_letterplace.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ cdef class FreeAlgebraElement_letterplace(AlgebraElement):
708708
709709
INPUT:
710710
711-
A twosided homogeneous ideal `I` of the parent `F` of
712-
this element, `x`.
711+
- ``I`` -- a twosided homogeneous ideal of the parent `F` of
712+
this element, `x`
713713
714714
OUTPUT: the normal form of `x` wrt. `I`
715715

src/sage/algebras/letterplace/letterplace_ideal.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class LetterplaceIdeal(Ideal_nc):
200200
201201
INPUT:
202202
203-
- ``degbound`` (optional integer, or Infinity): If it is provided,
203+
- ``degbound`` -- optional integer, or Infinity; if it is provided,
204204
a Groebner basis at least out to that degree is returned. By
205205
default, the current degree bound of the underlying ring is used.
206206

src/sage/algebras/quantum_groups/fock_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ def _A_to_fock_basis(self, la):
20202020

20212021
# For non-interior partitions
20222022
# Construct the d's and the partition ``a``
2023-
a = list(la) + [0]*(k - 1 - len(la)) # Add 0's to get the correct length
2023+
a = list(la) + [0]*(k - 1 - len(la)) # Add 0s to get the correct length
20242024
a = [a[i] + (k - 1 - i) for i in range(k-1)] # Shift the diagram
20252025
#shifted = list(a) # Make a copy of the shifted partition in case we need it later
20262026
d = [(a[i] - a[i+1]) % n for i in range(k-2)]

src/sage/algebras/quantum_matrix_coordinate_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ def _generator_key(t):
983983
984984
INPUT:
985985
986-
a tuple (index, exponent)
986+
- ``t`` -- tuple (index, exponent)
987987
988988
OUTPUT: a tuple made from the index only
989989

src/sage/algebras/steenrod/steenrod_algebra.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ def Q_exp(self, *nums):
24002400
"""
24012401
if not all(x in (0, 1) for x in nums):
24022402
raise ValueError("The tuple %s should consist " % (nums,) +
2403-
"only of 0's and 1's")
2403+
"only of 0s and 1s")
24042404
else:
24052405
if self.basis_name() != 'milnor':
24062406
return self(SteenrodAlgebra(p=self.prime(),
@@ -4022,7 +4022,7 @@ def SteenrodAlgebra(p=2, basis='milnor', generic='auto', **kwds):
40224022
following::
40234023
40244024
sage: A2 = SteenrodAlgebra(profile=[3,2,1])
4025-
sage: B2 = SteenrodAlgebra(profile=[3,2,1,0,0]) # trailing 0's ignored
4025+
sage: B2 = SteenrodAlgebra(profile=[3,2,1,0,0]) # trailing 0s ignored
40264026
sage: A2 == B2
40274027
True
40284028
sage: C2 = SteenrodAlgebra(profile=lambda n: max(4-n, 0), truncation_type=0)

src/sage/calculus/desolvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ def desolve_system_rk4(des, vars, ics=None, ivar=None, end_points=None, step=0.1
13911391
13921392
INPUT:
13931393
1394-
input is similar to desolve_system and desolve_rk4 commands
1394+
Input is similar to ``desolve_system`` and ``desolve_rk4`` commands
13951395
13961396
- ``des`` -- right hand sides of the system
13971397

src/sage/categories/finite_posets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,10 +1360,10 @@ def panyushev_orbits(self, element_constructor=set):
13601360
13611361
INPUT:
13621362
1363-
- ``element_constructor`` (defaults to ``set``) -- a type
1363+
- ``element_constructor`` -- (default: ``set``) a type
13641364
constructor (``set``, ``tuple``, ``list``, ``frozenset``,
13651365
``iter``, etc.) which is to be applied to the antichains
1366-
before they are returned.
1366+
before they are returned
13671367
13681368
OUTPUT:
13691369
@@ -1422,10 +1422,10 @@ def rowmotion_orbits(self, element_constructor=set):
14221422
14231423
INPUT:
14241424
1425-
- ``element_constructor`` (defaults to ``set``) -- a type
1425+
- ``element_constructor`` -- (default: ``set``) a type
14261426
constructor (``set``, ``tuple``, ``list``, ``frozenset``,
14271427
``iter``, etc.) which is to be applied to the antichains
1428-
before they are returned.
1428+
before they are returned
14291429
14301430
OUTPUT:
14311431

src/sage/categories/functor.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def IdentityFunctor(C):
629629
630630
INPUT:
631631
632-
A category, ``C``.
632+
- ``C`` -- a category
633633
634634
OUTPUT: the identity functor in ``C``
635635

src/sage/categories/map.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ cdef class Section(Map):
13571357
"""
13581358
INPUT:
13591359
1360-
A map.
1360+
- ``map`` -- a map
13611361
13621362
TESTS::
13631363

0 commit comments

Comments
 (0)