def f4(t):
 if t:
  x = 1
 else:
  y = 2
 print sorted(locals().items())
 print sorted(vars().items())

def f4 ( t ) : if t : x = 1 else : y = 2 print sorted ( locals ( ) . items ( ) ) print sorted ( vars ( ) . items ( ) )
testing synthetic is_defined variables .