From 44182089cc3e0f0a6aecb6e652ad2a5c42bbb36a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 7 Dec 2019 19:01:13 -0500 Subject: [PATCH] eja: listify map/zip results for python-3.x compatibility. --- mjo/eja/eja_algebra.py | 6 ++++-- mjo/eja/eja_operator.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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)) -- 2.44.2