fork download
  1. import dis
  2.  
  3. dis.dis(lambda x: x + 2)
  4.  
  5. print()
  6. def f(x): return x + 2
  7.  
  8. dis.dis(f)
Success #stdin #stdout 0.01s 29784KB
stdin
Standard input is empty
stdout
  3           0 LOAD_FAST                0 (x)
              3 LOAD_CONST               1 (2)
              6 BINARY_ADD
              7 RETURN_VALUE

  6           0 LOAD_FAST                0 (x)
              3 LOAD_CONST               1 (2)
              6 BINARY_ADD
              7 RETURN_VALUE