Skip to content

Commit 0eeaf12

Browse files
author
Release Manager
committed
sagemathgh-41019: less (a,b) = in documentation as the parentheses are not necessary ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#41019 Reported by: Frédéric Chapoton Reviewer(s): David Coudert
2 parents a030984 + 7c4a2e2 commit 0eeaf12

35 files changed

+75
-73
lines changed

src/sage/calculus/functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ def integral(f, *args, **kwds):
236236
`(1,1)`::
237237
238238
sage: t = var('t')
239-
sage: (x,y) = (t^4,t)
240-
sage: (dx,dy) = (diff(x,t), diff(y,t))
239+
sage: x, y = t^4, t
240+
sage: dx, dy = diff(x,t), diff(y,t)
241241
sage: integral(sin(x)*dx, t,-1, 1)
242242
0
243243
sage: restore('x,y') # restore the symbolic variables x and y

src/sage/categories/algebra_functor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
product of the corresponding elements of the group, and the unit of
3333
the group algebra is indexed by the unit of the group::
3434
35-
sage: (s, t) = A.algebra_generators()
35+
sage: s, t = A.algebra_generators()
3636
sage: s*t
3737
(1,2)
3838
sage: A.one_basis()

src/sage/categories/coalgebras_with_basis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def coproduct_on_basis(self, i):
6666
An example of Hopf algebra with basis:
6767
the group algebra of the Dihedral group of order 6
6868
as a permutation group over Rational Field
69-
sage: (a, b) = A._group.gens() # needs sage.groups sage.modules
69+
sage: a, b = A._group.gens() # needs sage.groups sage.modules
7070
sage: A.coproduct_on_basis(a) # needs sage.groups sage.modules
7171
B[(1,2,3)] # B[(1,2,3)]
7272
"""
@@ -120,7 +120,7 @@ def counit_on_basis(self, i):
120120
An example of Hopf algebra with basis:
121121
the group algebra of the Dihedral group of order 6
122122
as a permutation group over Rational Field
123-
sage: (a, b) = A._group.gens() # needs sage.groups sage.modules
123+
sage: a, b = A._group.gens() # needs sage.groups sage.modules
124124
sage: A.counit_on_basis(a) # needs sage.groups sage.modules
125125
1
126126
"""

src/sage/categories/examples/hopf_algebras_with_basis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def product_on_basis(self, g1, g2):
7474
EXAMPLES::
7575
7676
sage: A = HopfAlgebrasWithBasis(QQ).example()
77-
sage: (a, b) = A._group.gens()
77+
sage: a, b = A._group.gens()
7878
sage: a*b
7979
(1,2)
8080
sage: A.product_on_basis(a, b)
@@ -107,7 +107,7 @@ def coproduct_on_basis(self, g):
107107
EXAMPLES::
108108
109109
sage: A = HopfAlgebrasWithBasis(QQ).example()
110-
sage: (a, b) = A._group.gens()
110+
sage: a, b = A._group.gens()
111111
sage: A.coproduct_on_basis(a)
112112
B[(1,2,3)] # B[(1,2,3)]
113113
"""
@@ -123,7 +123,7 @@ def counit_on_basis(self, g):
123123
EXAMPLES::
124124
125125
sage: A = HopfAlgebrasWithBasis(QQ).example()
126-
sage: (a, b) = A._group.gens()
126+
sage: a, b = A._group.gens()
127127
sage: A.counit_on_basis(a)
128128
1
129129
"""
@@ -138,7 +138,7 @@ def antipode_on_basis(self, g):
138138
EXAMPLES::
139139
140140
sage: A = HopfAlgebrasWithBasis(QQ).example()
141-
sage: (a, b) = A._group.gens()
141+
sage: a, b = A._group.gens()
142142
sage: A.antipode_on_basis(a)
143143
B[(1,3,2)]
144144
"""

src/sage/categories/filtered_modules_with_basis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def is_homogeneous(self):
732732
733733
sage: # needs sage.combinat sage.modules
734734
sage: S = NonCommutativeSymmetricFunctions(QQ).S()
735-
sage: (x, y) = (S[2], S[3])
735+
sage: x, y = S[2], S[3]
736736
sage: (3*x).is_homogeneous()
737737
True
738738
sage: (x^3 - y^2).is_homogeneous()
@@ -815,7 +815,7 @@ def homogeneous_degree(self):
815815
816816
sage: # needs sage.combinat sage.modules
817817
sage: S = NonCommutativeSymmetricFunctions(QQ).S()
818-
sage: (x, y) = (S[2], S[3])
818+
sage: x, y = S[2], S[3]
819819
sage: x.homogeneous_degree()
820820
2
821821
sage: (x^3 + 4*y^2).homogeneous_degree()
@@ -888,7 +888,7 @@ def maximal_degree(self):
888888
889889
sage: # needs sage.combinat sage.modules
890890
sage: S = NonCommutativeSymmetricFunctions(QQ).S()
891-
sage: (x, y) = (S[2], S[3])
891+
sage: x, y = S[2], S[3]
892892
sage: x.maximal_degree()
893893
2
894894
sage: (x^3 + 4*y^2).maximal_degree()

src/sage/categories/simplicial_sets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def cover(self, character):
536536
sage: S1_.n_cells(1)[0].rename("sigma_1'")
537537
sage: W = S1.wedge(S1_)
538538
sage: G = CyclicPermutationGroup(3)
539-
sage: (a, b) = W.n_cells(1)
539+
sage: a, b = W.n_cells(1)
540540
sage: C = W.cover({a : G.gen(0), b : G.gen(0)^2})
541541
sage: C.face_data()
542542
{(*, ()): None,

src/sage/combinat/dyck_word.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ def characteristic_symmetric_function(self, q=None,
20612061
EXAMPLES::
20622062
20632063
sage: R = QQ['q','t'].fraction_field()
2064-
sage: (q,t) = R.gens()
2064+
sage: q, t = R.gens()
20652065
sage: f = sum(t**D.area() * D.characteristic_symmetric_function() # needs sage.modules
20662066
....: for D in DyckWords(3)); f
20672067
(q^3+q^2*t+q*t^2+t^3+q*t)*s[1, 1, 1] + (q^2+q*t+t^2+q+t)*s[2, 1] + s[3]

src/sage/combinat/ncsf_qsym/generic_basis_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def degree(self):
949949
EXAMPLES::
950950
951951
sage: S = NonCommutativeSymmetricFunctions(QQ).S()
952-
sage: (x, y) = (S[2], S[3])
952+
sage: x, y = S[2], S[3]
953953
sage: x.degree()
954954
2
955955
sage: (x^3 + 4*y^2).degree()
@@ -960,7 +960,7 @@ def degree(self):
960960
::
961961
962962
sage: F = QuasiSymmetricFunctions(QQ).F()
963-
sage: (x, y) = (F[2], F[3])
963+
sage: x, y = F[2], F[3]
964964
sage: x.degree()
965965
2
966966
sage: (x^3 + 4*y^2).degree()

src/sage/combinat/parking_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def characteristic_quasisymmetric_function(self, q=None,
10041004
10051005
sage: # needs sage.modules
10061006
sage: R = QQ['q','t'].fraction_field()
1007-
sage: (q,t) = R.gens()
1007+
sage: q, t = R.gens()
10081008
sage: cqf = sum(t**PF.area() * PF.characteristic_quasisymmetric_function()
10091009
....: for PF in ParkingFunctions(3)); cqf
10101010
(q^3+q^2*t+q*t^2+t^3+q*t)*F[1, 1, 1] + (q^2+q*t+t^2+q+t)*F[1, 2]

src/sage/combinat/sf/hall_littlewood.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def P(self):
233233
Transitions between bases with the parameter `t` specialized::
234234
235235
sage: Sym = SymmetricFunctions(FractionField(QQ['y','z']))
236-
sage: (y,z) = Sym.base_ring().gens()
236+
sage: y, z = Sym.base_ring().gens()
237237
sage: HLy = Sym.hall_littlewood(t=y)
238238
sage: HLz = Sym.hall_littlewood(t=z)
239239
sage: Qpy = HLy.Qp()

0 commit comments

Comments
 (0)