Skip to content

Commit e4f3402

Browse files
authored
Update README.md
Fix incorrect output for f-string.
1 parent 6c0ed6e commit e4f3402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3395,7 +3395,7 @@ Let's increase the number of iterations by a factor of 10.
33953395
```py
33963396
>>> some_string = "wtfpython"
33973397
>>> f'{some_string=}'
3398-
"string='wtfpython'"
3398+
"some_string='wtfpython'"
33993399
```
34003400
34013401
* 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!):

0 commit comments

Comments
 (0)