We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef48b4 commit f151505Copy full SHA for f151505
1 file changed
mcdc/code_factory/literals_generator.py
@@ -4,9 +4,10 @@
4
5
6
def _literalize(value):
7
+ namespace = {}
8
jit_str = f"@njit\ndef impl():\n return {value}\n"
- exec(jit_str, globals(), locals())
9
- return eval("impl")
+ exec(jit_str, globals(), namespace)
10
+ return namespace["impl"]
11
12
13
def make_literals(simulation):
0 commit comments