Last active
August 29, 2015 14:20
-
-
Save etscrivner/a4b5061d1c899639622a to your computer and use it in GitHub Desktop.
Figuring out how many bits are in a python bool. Researching a few approaches to implementing bit arrays in Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> (sys.getsizeof([False]*2) - sys.getsizeof([True]*1)) * 8 | |
64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment