From 56ac56d1aefef541a65d72e2cb67fbdd28d5cf15 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni <kaushikcfd@gmail.com> Date: Mon, 28 Jun 2021 14:16:29 -0500 Subject: [PATCH] do not expose keyed_ variants of the mappers under arraycontext module --- arraycontext/__init__.py | 2 -- arraycontext/impl/pytato/compile.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arraycontext/__init__.py b/arraycontext/__init__.py index 8562f7b..a338059 100644 --- a/arraycontext/__init__.py +++ b/arraycontext/__init__.py @@ -52,7 +52,6 @@ from .container.traversal import ( rec_multimap_array_container, mapped_over_array_containers, multimapped_over_array_containers, - keyed_map_array_container, rec_keyed_map_array_container, thaw, freeze, from_numpy, to_numpy) @@ -84,7 +83,6 @@ __all__ = ( "rec_map_array_container", "rec_multimap_array_container", "mapped_over_array_containers", "multimapped_over_array_containers", - "keyed_map_array_container", "rec_keyed_map_array_container", "thaw", "freeze", "from_numpy", "to_numpy", diff --git a/arraycontext/impl/pytato/compile.py b/arraycontext/impl/pytato/compile.py index af685d0..78273b1 100644 --- a/arraycontext/impl/pytato/compile.py +++ b/arraycontext/impl/pytato/compile.py @@ -73,7 +73,7 @@ def _ary_container_key_stringifier(keys: Tuple[Any, ...]) -> str: Helper for :meth:`LazilyCompilingFunctionCaller.__call__`. Stringifies an array-container's component's key. Goals of this routine: - * No two different keys have the same stringification + * No two different keys should have the same stringification * Stringified key must a valid identifier according to :meth:`str.isidentifier` * (informal) Shorter identifiers are preferred """ -- GitLab