mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-21 18:54:20 +01:00
Update README.md
Fix incorrect output for f-string.
This commit is contained in:
parent
6c0ed6e7c5
commit
e4f340281c
2
README.md
vendored
2
README.md
vendored
@ -3395,7 +3395,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!):
|
||||
|
Loading…
Reference in New Issue
Block a user