From 66e2d8e086744541cf47e068631e9ff676424847 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Fri, 19 Jul 2024 13:09:16 +0200 Subject: [PATCH] Add function python.vars() --- src/xacro/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xacro/__init__.py b/src/xacro/__init__.py index c91cd88..92a40bb 100644 --- a/src/xacro/__init__.py +++ b/src/xacro/__init__.py @@ -213,7 +213,7 @@ def expose(*args, **kwargs): # Expose all builtin symbols into the python namespace. Thus the stay accessible if the global symbol was overriden expose('list', 'dict', 'map', 'len', 'str', 'float', 'int', 'True', 'False', 'min', 'max', 'round', 'abs', 'all', 'any', 'complex', 'divmod', 'enumerate', 'filter', 'frozenset', 'hash', 'isinstance', 'issubclass', - 'ord', 'repr', 'reversed', 'slice', 'set', 'sum', 'tuple', 'type', 'zip', source=__builtins__, ns='python') + 'ord', 'repr', 'reversed', 'slice', 'set', 'sum', 'tuple', 'type', 'vars', 'zip', source=__builtins__, ns='python') # Expose all math symbols and functions into namespace math (and directly for backwards compatibility -- w/o deprecation) expose([(k, v) for k, v in math.__dict__.items() if not k.startswith('_')], ns='math', deprecate_msg='')