From 4e3a42dc8d32006c3493c76cb263d388d007201e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 3 Oct 2017 16:20:16 -0500 Subject: [PATCH] Support sympy.UnevaluatedExpr --- pymbolic/interop/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymbolic/interop/common.py b/pymbolic/interop/common.py index 7501a50..d8b75f5 100644 --- a/pymbolic/interop/common.py +++ b/pymbolic/interop/common.py @@ -111,6 +111,9 @@ class SympyLikeToPymbolicMapper(SympyLikeMapperBase): return prim.CommonSubexpression( self.rec(expr.args[0]), expr.prefix) + def map_UnevaluatedExpr(self, expr): # noqa + return self.rec(expr.args[0]) + def not_supported(self, expr): # noqa if isinstance(expr, int): return expr -- GitLab