]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: listify map/zip results for python-3.x compatibility.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Dec 2019 00:01:13 +0000 (19:01 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Dec 2019 00:01:13 +0000 (19:01 -0500)
mjo/eja/eja_algebra.py
mjo/eja/eja_operator.py

index dfb15c627fe021a3d3b47348a42ea56dc666e6fc..d31b5b71a0df190dee14d86f1544cff547f025ef 100644 (file)
@@ -94,8 +94,10 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule):
         # long run to have the multiplication table be in terms of
         # algebra elements. We do this after calling the superclass
         # constructor so that from_vector() knows what to do.
-        self._multiplication_table = [ map(lambda x: self.from_vector(x), ls)
-                                       for ls in mult_table ]
+        self._multiplication_table = [
+            list(map(lambda x: self.from_vector(x), ls))
+            for ls in mult_table
+        ]
 
 
     def _element_constructor_(self, elt):
index 2a0c9c48633cd06551c49515840680b57a5b927d..030b94f73c5b4d1da8762a9cd9613e3d5725c4ad 100644 (file)
@@ -582,4 +582,4 @@ class FiniteDimensionalEuclideanJordanAlgebraOperator(Map):
                    self.codomain(),
                    mat)
             projectors.append(Pi)
-        return zip(eigenvalues, projectors)
+        return list(zip(eigenvalues, projectors))