Skip to content

Instantly share code, notes, and snippets.

@etscrivner
Last active August 29, 2015 14:20
Show Gist options
  • Save etscrivner/a4b5061d1c899639622a to your computer and use it in GitHub Desktop.
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.
>>> (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