mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
print and exec are no longer available, the parser removes them now.
This commit is contained in:
4
test.py
4
test.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user