Created
December 26, 2018 12:44
-
-
Save DahlitzFlorian/6ac9a6773156e9a51d8b759bf1a0f7b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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_string(number: int): | |
| return f"{number}" | |
| def str_string(number: int): | |
| return str(number) | |
| print("============================== f-strings ==============================") | |
| dis.dis(f_string) | |
| print("================================ str() ================================") | |
| dis.dis(str_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment