File: README.md

package info (click to toggle)
python-bitarray 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,288 kB
  • sloc: python: 11,456; ansic: 7,657; makefile: 73; sh: 6
file content (10 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
The bitarray resize function and growth pattern
===============================================

Running `python resize.py` will display the bitarray growth pattern.
This is done by appending one bit to a bitarray in a loop, and displaying
the allocated size of the bitarray object each time it changes.

The program `resize.c` contains a distilled version of the `resize()`
function which contains the implementation of this growth pattern.
Running this C program gives exactly the same output.