From: Michael Orlitzky Date: Sun, 8 Dec 2019 00:01:13 +0000 (-0500) Subject: eja: listify map/zip results for python-3.x compatibility. X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=44182089cc3e0f0a6aecb6e652ad2a5c42bbb36a;p=sage.d.git eja: listify map/zip results for python-3.x compatibility. --- diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index dfb15c6..d31b5b7 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -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): diff --git a/mjo/eja/eja_operator.py b/mjo/eja/eja_operator.py index 2a0c9c4..030b94f 100644 --- a/mjo/eja/eja_operator.py +++ b/mjo/eja/eja_operator.py @@ -582,4 +582,4 @@ class FiniteDimensionalEuclideanJordanAlgebraOperator(Map): self.codomain(), mat) projectors.append(Pi) - return zip(eigenvalues, projectors) + return list(zip(eigenvalues, projectors))