From bd05e9e723cf6d662347515ff6e24cd88666ee03 Mon Sep 17 00:00:00 2001 From: Jeppe Pihl Date: Fri, 1 Sep 2017 15:13:09 +0200 Subject: [PATCH] Fixed wrong output of `isinstance(False, float)` Fixed the output of `isinstance(False, float)` and changed `False` to `True` to match `isinstance(True, int)` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b3e7c2..7bab236 100755 --- a/README.md +++ b/README.md @@ -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