from bitarray import bitarray
a = bitarray(2**20)
You can check out more info about this module at http://pypi.python.org/pypi/bitarray/
More Related Contents:
- Is there a NumPy function to return the first index of something in an array?
- Understanding NumPy’s einsum
- Intuition and idea behind reshaping 4D array to 2D array in NumPy
- Computing the correlation coefficient between two multi-dimensional arrays
- Removing nan values from an array
- Why is numpy’s einsum faster than numpy’s built in functions?
- How to return 0 with divide by zero
- Most efficient way to forward-fill NaN values in numpy array
- Why does numpy.zeros takes up little space
- Generalise slicing operation in a NumPy array
- How to read an array of integers from single line of input in python3
- How to split a numpy array in fixed size chunks with and without overlap?
- Parameters to numpy’s fromfunction
- List to array conversion to use ravel() function
- Efficient distance calculation between N points and a reference in numpy/scipy
- How to group elements in python by n elements [duplicate]
- Fastest save and load options for a numpy array
- NumPy array/matrix of mixed types
- Numpy find indices of groups with same value
- numpy with python: convert 3d array to 2d
- How is numpy’s fancy indexing implemented?
- Convert row vector to column vector in NumPy
- How can I slice each element of a numpy array of strings?
- Python 3: I am trying to find find all green pixels in an image by traversing all pixels using an np.array, but can’t get around index error
- Scrape Dynamic contents created by Javascript using Python
- Unpacking arguments: only named arguments may follow *expression
- Append 2D array to 3D array, extending third dimension
- numpy – evaluate function on a grid of points
- numpy arange: how to make “precise” array of floats?
- Shift rows of a numpy array independently