Skip to content

bmoscon/bit_array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bit Array

Travis CI License

A simple bit array in pure python. Sample use:

b = BitArray(64)
b[0] = 1
b[1] = 0

You can also initialize with a list:

b = BitArray([0,1,0,1,0,1,0,1])
print(b[1])
>>> 1

You can also access parts of the array with slice operations:

sliced = b[0:4]
print(sliced[1])
>> 1
len(sliced)
>>> 4

About

Pure Python Bit Array

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages