Python builtin list memory allocation library
Project description
list-reserve
Python builtin list memory allocation library.
Getting it
pip install list_reserve
capacity
Return allocated list memory size.
from list_reserve import capacity
l = [1, 2, 3]
print(capacity(l)) # 3
reserve
Reserve list memory.
from list_reserve import reserve, capacity
l = []
reserve(l, 10)
print(len(l)) # 0
print(capacity(l)) # 10
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
list_reserve-0.0.1.tar.gz
(2.0 kB
view hashes)