circuitpython/tests/basics/builtin_eval.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
224 B
Python
Raw Normal View History

2014-01-15 17:14:03 -05:00
# builtin eval
try:
eval
except NameError:
print("SKIP")
raise SystemExit
2014-01-15 17:14:03 -05:00
eval('1 + 2')
eval('1 + 2\n')
eval('1 + 2\n\n#comment\n')
x = 4
eval('x')
eval('lambda x: x + 10')(-5)
y = 6
eval('lambda: y * 2')()