Skip to content

Commit c501119

Browse files
committed
Making the result not depend on the input.
1 parent 5b8a696 commit c501119

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sage/combinat/sf/sfa.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3165,11 +3165,12 @@ def plethysm(self, x, include=None, exclude=None):
31653165
"""
31663166
from sage.structure.element import parent as get_parent
31673167
Px = get_parent(x)
3168-
if not self:
3169-
return Px(0)
3170-
31713168
parent = self.parent()
31723169
R = parent.base_ring()
3170+
3171+
if not self:
3172+
return R(0)
3173+
31733174
tHA = HopfAlgebrasWithBasis(R).TensorProducts()
31743175
tensorflag = Px in tHA
31753176
if not is_SymmetricFunction(x):

0 commit comments

Comments
 (0)