We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583306c commit cb1804fCopy full SHA for cb1804f
test_ast/test_ast.py
@@ -0,0 +1,9 @@
1
+#!/usr/bin/env python
2
+# coding=utf-8
3
+import ast
4
+
5
+print eval('1 + 2')
6
+print eval("__import__('os').system('dir')")
7
8
+print '='*50
9
+print ast.literal_eval("__import__('os').system('dir')")
0 commit comments