fork download
  1. import dis
  2.  
  3. a = 257
  4. b = 256
  5. b += 1
  6.  
  7. def f():
  8. c = a, b
  9. x, y = c
  10. print x is y
  11.  
  12. f()
  13. dis.dis(f)
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
False
  8           0 LOAD_GLOBAL              0 (a)
              3 LOAD_GLOBAL              1 (b)
              6 BUILD_TUPLE              2
              9 STORE_FAST               0 (c)

  9          12 LOAD_FAST                0 (c)
             15 UNPACK_SEQUENCE          2
             18 STORE_FAST               1 (x)
             21 STORE_FAST               2 (y)

 10          24 LOAD_FAST                1 (x)
             27 LOAD_FAST                2 (y)
             30 COMPARE_OP               8 (is)
             33 PRINT_ITEM          
             34 PRINT_NEWLINE       
             35 LOAD_CONST               0 (None)
             38 RETURN_VALUE