Module Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore BinOpAdd NameLoad ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore ListLoad ListLoad Str ListLoad Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad ListLoad Str Str Str Str Str Str Str Str
N/A N/A 
list of tested expressions / suites (used by test_parser and test_astbuilder)
 N/A constants N/A 0 7 -3 053 0x18 14L 1.0 3.9 -3.6 1.8e19 90000000000000 90000000000000. 3j N/A expressions N/A x = a + 1 x = 1 - a x = a * b x = a ** 2 x = a / b x = a & b x = a | b x = a ^ b x = a // b x = a * b + 1 x = a + 1 * b x = a * b / c x = a * (1 + c) x, y, z = 1, 2, 3 x = 'a' 'b' 'c' del foo del foo[bar] del foo.bar l[0] k[v,] m[a,b] a.b.c[d] file('some.txt').read() a[0].read() a[1:1].read() f('foo')('bar')('spam') f('foo')('bar')('spam').read()[0] a.b[0][0] a.b[0][:] a.b[0][::] a.b[0][0].pop()[0].push('bar')('baz').spam a.b[0].read()[1][2].foo().spam()[0].bar a**2 a**2**2 a.b[0]**2 a.b[0].read()[1][2].foo().spam()[0].bar ** 2 l[start:end] = l2 l[::] = l2 a = `s` a = `1 + 2 + f(3, 4)` [a, b] = c (a, b) = c [a, (b,c), d] = e a, (b, c), d = e N/A expressions_inbetweenversions N/A expressions N/A 1 if True else 2 1 if False else 2 N/A funccalls N/A l = func() l = func(10) l = func(10, 12, a, b=c, *args) l = func(10, 12, a, b=c, **kwargs) l = func(10, 12, a, b=c, *args, **kwargs) l = func(10, 12, a, b=c) e = l.pop(3) e = k.l.pop(3) simplefilter('ignore', category=PendingDeprecationWarning, append=1) methodmap = dict(subdirs=phase4,
                        same_files=phase3, diff_files=phase3, funny_files=phase3,
                        common_dirs = phase2, common_files=phase2, common_funny=phase2,
                        common=phase1, left_only=phase1, right_only=phase1,
                        left_list=phase0, right_list=phase0) odata = b2a_qp(data, quotetabs = quotetabs, header = header) N/A listmakers N/A l = [] l = [1, 2, 3] l = [i for i in range(10)] l = [i for i in range(10) if i%2 == 0] l = [i for i in range(10) if i%2 == 0 or i%2 == 1] l = [i for i in range(10) if i%2 == 0 and i%2 == 1] l = [i for j in range(10) for i in range(j)] l = [i for j in range(10) for i in range(j) if j%2 == 0] l = [i for j in range(10) for i in range(j) if j%2 == 0 and i%2 == 0] l = [(a, b) for (a,b,c) in l2] l = [{a:b} for (a,b,c) in l2] l = [i for j in k if j%2 == 0 if j*2 < 20 for i in j if i%2==0] N/A genexps N/A l = (i for i in j) l = (i for i in j if i%2 == 0) l = (i for j in k for i in j) l = (i for j in k for i in j if j%2==0) l = (i for j in k if j%2 == 0 if j*2 < 20 for i in j if i%2==0) l = (i for i in [ j*2 for j in range(10) ] ) l = [i for i in ( j*2 for j in range(10) ) ] l = (i for i in [ j*2 for j in ( k*3 for k in range(10) ) ] ) l = [i for j in ( j*2 for j in [ k*3 for k in range(10) ] ) ] l = f(i for i in j) N/A dictmakers N/A l = {a : b, 'c' : 0} l = {} N/A backtrackings N/A f = lambda x: x+1 f = lambda x,y: x+y f = lambda x,y=1,z=t: x+y f = lambda x,y=1,z=t,*args,**kwargs: x+y f = lambda x,y=1,z=t,*args: x+y f = lambda x,y=1,z=t,**kwargs: x+y f = lambda: 1 f = lambda *args: 1 f = lambda **kwargs: 1 N/A comparisons N/A a < b a > b a not in b a is not b a in b a is b 3 < x < 5 (3 < x) < 5 a < b < c < d (a < b) < (c < d) a < (b < c) < d N/A multiexpr N/A a = b; c = d; a = b = c = d N/A attraccess N/A a.b = 2 x = a.b N/A slices N/A l[:] l[::] l[1:2] l[1:] l[:2] l[1::] l[:1:] l[::1] l[1:2:] l[:1:2] l[1::2] l[0:1:2] a.b.l[:] a.b.l[1:2] a.b.l[1:] a.b.l[:2] a.b.l[0:1:2] a[1:2:3, 100] a[:2:3, 100] a[1::3, 100,] a[1:2:, 100] a[1:2, 100] a[1:, 100,] a[:2, 100] a[:, 100] a[100, 1:2:3,] a[100, :2:3] a[100, 1::3] a[100, 1:2:,] a[100, 1:2] a[100, 1:] a[100, :2,] a[100, :] N/A imports N/A import os import sys, os import os.path import os.path, sys import sys, os.path as osp import os.path as osp import os.path as osp, sys as _sys import a.b.c.d import a.b.c.d as abcd from os import path from os import path, system N/A imports_newstyle N/A from os import path, system from os import path as P, system as S from os import (path as P, system as S,) from os import * N/A if_stmts N/A if a == 1: a+= 2 if a == 1:
    a += 2
elif a == 2:
    a += 3
else:
    a += 4
 if a and not b == c: pass if a and not not not b == c: pass if 0: print 'foo' N/A asserts N/A assert False assert a == 1 assert a == 1 and b == 2 assert a == 1 and b == 2, "assertion failed" N/A execs N/A exec a exec "a=b+3" exec a in f() exec a in f(), g() N/A prints N/A print print a print a, print a, b print a, "b", c print >> err print >> err, "error" print >> err, "error", print >> err, "error", a N/A globs N/A global a global a,b,c N/A raises_ N/A raise raise ValueError raise ValueError("error") raise ValueError, "error" raise ValueError, "error", foo N/A tryexcepts N/A try:
    a
    b
except:
    pass
 try:
    a
    b
except NameError:
    pass
 try:
    a
    b
except NameError, err:
    pass
 try:
    a
    b
except (NameError, ValueError):
    pass
 try:
    a
    b
except (NameError, ValueError), err:
    pass
 try:
    a
except NameError, err:
    pass
except ValueError, err:
    pass
 def f():
    try:
        a
    except NameError, err:
        a = 1
        b = 2
    except ValueError, err:
        a = 2
        return a
try:
    a
except NameError, err:
    a = 1
except ValueError, err:
    a = 2
else:
    a += 3
 try:
    a
finally:
    b
 def f():
    try:
        return a
    finally:
        a = 3
        return 1
 N/A one_stmt_funcdefs N/A def f(): return 1 def f(x): return x+1 def f(x,y): return x+y def f(x,y=1,z=t): return x+y def f(x,y=1,z=t,*args,**kwargs): return x+y def f(x,y=1,z=t,*args): return x+y def f(x,y=1,z=t,**kwargs): return x+y def f(*args): return 1 def f(**kwargs): return 1 def f(t=()): pass def f(a, b, (c, d), e): pass def f(a, b, (c, (d, e), f, (g, h))): pass def f(a, b, (c, (d, e), f, (g, h)), i): pass def f((a)): pass N/A one_stmt_classdefs N/A class Pdb(bdb.Bdb, cmd.Cmd): pass class A: pass N/A docstrings N/A def foo(): return 1 class Foo: pass class Foo: "foo" def foo():
    """foo docstring"""
    return 1
 def foo():
    """foo docstring"""
    a = 1
    """bar"""
    return a
 def foo():
    """doc"""; print 1
    a=1
 """Docstring""";print 1 N/A returns N/A def f(): return def f(): return 1 def f(): return a.b def f(): return a def f(): return a,b,c,d N/A augassigns N/A a=1;a+=2 a=1;a-=2 a=1;a*=2 a=1;a/=2 a=1;a//=2 a=1;a%=2 a=1;a**=2 a=1;a>>=2 a=1;a<<=2 a=1;a&=2 a=1;a^=2 a=1;a|=2 a=A();a.x+=2 a=A();a.x-=2 a=A();a.x*=2 a=A();a.x/=2 a=A();a.x//=2 a=A();a.x%=2 a=A();a.x**=2 a=A();a.x>>=2 a=A();a.x<<=2 a=A();a.x&=2 a=A();a.x^=2 a=A();a.x|=2 a=A();a[0]+=2 a=A();a[0]-=2 a=A();a[0]*=2 a=A();a[0]/=2 a=A();a[0]//=2 a=A();a[0]%=2 a=A();a[0]**=2 a=A();a[0]>>=2 a=A();a[0]<<=2 a=A();a[0]&=2 a=A();a[0]^=2 a=A();a[0]|=2 a=A();a[0:2]+=2 a=A();a[0:2]-=2 a=A();a[0:2]*=2 a=A();a[0:2]/=2 a=A();a[0:2]//=2 a=A();a[0:2]%=2 a=A();a[0:2]**=2 a=A();a[0:2]>>=2 a=A();a[0:2]<<=2 a=A();a[0:2]&=2 a=A();a[0:2]^=2 a=A();a[0:2]|=2 N/A PY23_TESTS N/A constants expressions augassigns comparisons funccalls backtrackings listmakers dictmakers multiexpr attraccess slices imports execs prints globs raises_ N/A OPTIONAL_TESTS N/A genexps imports_newstyle asserts N/A TESTS N/A PY23_TESTS OPTIONAL_TESTS N/A CHANGES_25_INPUTS N/A N/A class A(): pass N/A def f(): x = yield 3 N/A EXEC_INPUTS N/A one_stmt_classdefs one_stmt_funcdefs if_stmts tryexcepts docstrings returns N/A SINGLE_INPUTS N/A one_stmt_funcdefs N/A 	 # hello
 print 6*7 if 1:  x
 x = 5 x = 5  """Docstring""";print 1 "Docstring" "Docstring" "\x00"