print and exec are no longer available, the parser removes them now.

This commit is contained in:
David Halter
2012-03-05 09:30:39 +01:00
parent 5e6404cf90
commit 3acf46e276
2 changed files with 9 additions and 7 deletions

View File

@@ -72,6 +72,8 @@ def ass_test(a):
# (comment without indent)
(b, c, d) = (1,2,3)
del b
f = {}
exec 'a = 999' in f
# test strange statements
[a,c] ; {1: a}; (1,); `a`
result = int((a+b)*2)
@@ -105,7 +107,7 @@ def flow_test(a):
raise e
yield e
#except TypeError, e:
# pass
pass
except:
pass
finally: