Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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