1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-24 20:14:23 +01:00

Merge pull request #159 from boppreh/patch-1

Update README.md
This commit is contained in:
Satwik Kansal 2019-12-25 01:23:18 +05:30 committed by GitHub
commit 99280f57a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
README.md vendored
View File

@ -3393,7 +3393,7 @@ Let's increase the number of iterations by a factor of 10.
```py
>>> some_string = "wtfpython"
>>> f'{some_string=}'
"string='wtfpython'"
"some_string='wtfpython'"
```
* Python uses 2 bytes for local variable storage in functions. In theory, this means that only 65536 variables can be defined in a function. However, python has a handy solution built in that can be used to store more than 2^16 variable names. The following code demonstrates what happens in the stack when more than 65536 local variables are defined (Warning: This code prints around 2^18 lines of text, so be prepared!):