Created
April 15, 2021 07:11
-
-
Save whoeverest/fa0661ef8d4842050d809670248a26f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import dis | |
>>> def f(): a, b = b, a | |
... | |
>>> dis.dis(f) | |
1 0 LOAD_FAST 0 (b) | |
2 LOAD_FAST 1 (a) | |
4 ROT_TWO | |
6 STORE_FAST 1 (a) | |
8 STORE_FAST 0 (b) | |
10 LOAD_CONST 0 (None) | |
12 RETURN_VALUE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment