Skip to content

Commit 12a8014

Browse files
Merge branch 'dsg_ticket1' into dsg_ticket2
2 parents 42445f4 + b19c2e7 commit 12a8014

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ def __call__(self, input):
340340
...
341341
TypeError: unable to convert {(4 : 1), (2 : 1)} to an element of Rational Field
342342
"""
343-
result = []
343+
result = set()
344344
for ds in self.defining_systems():
345-
result.append(ds(self.domain()(input)))
346-
return set(result)
345+
result.add(ds(self.domain()(input)))
346+
return result
347347

348348
def base_ring(self):
349349
r"""
@@ -436,10 +436,10 @@ def defining_polynomials(self):
436436
sage: f.defining_polynomials()
437437
{(x, y), (x^2, y^2)}
438438
"""
439-
result = []
439+
result = set()
440440
for ds in self.defining_systems():
441-
result.append(ds.defining_polynomials())
442-
return set(result)
441+
result.add(ds.defining_polynomials())
442+
return result
443443

444444
def defining_systems(self):
445445
r"""

0 commit comments

Comments
 (0)