Skip to content

Commit

Permalink
Fix wrong output
Browse files Browse the repository at this point in the history
Fixed wrong output of `isinstance(False, float)`
  • Loading branch information
satwikkansal committed Sep 1, 2017
2 parents f5565ee + bd05e9e commit 046663e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1510,8 +1510,8 @@ a, b = a[b] = {}, 5
```py
>>> isinstance(True, int)
True
>>> isinstance(False, float)
True
>>> isinstance(True, float)
False
```
* 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!):
```py
Expand Down

0 comments on commit 046663e

Please sign in to comment.