Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- $ python3 -m dis unpack.py
- ...
- 21 12 BUILD_LIST 0
- 14 LOAD_NAME 1 (numbers)
- 16 LIST_EXTEND 1
- 18 STORE_NAME 2 (copy1)
- 23 20 LOAD_NAME 3 (list)
- 22 LOAD_NAME 1 (numbers)
- 24 CALL_FUNCTION 1
- 26 STORE_NAME 4 (copy2)
- 28 LOAD_CONST 2 (None)
- 30 RETURN_VALUE
- """
- numbers = [2, 1, 3, 4, 7, 11, 18]
- copy1 = [*numbers]
- copy2 = list(numbers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement