I thought I would get a zero from this code, but an segfault is raised
>>> from bitarray import bitarray
>>> b = bitarray()
>>> int(b)
[1] 23442 segmentation fault (core dumped) python
Tested in python 2.7.3 on arch linux 64 bit, installed though pip.
I came across this lib in http://kmike.ru/python-data-structures/ and got interested since it could replace bitfield in my projects.