Simple collection of wrappers around Python's builtin 'array' module
Project description
hurray
hurray is a simple package containing a collection of wrappers around Python's builtin 'array' module.
from hurray import ShortArray, UIntArray, ULongArray
arr1 = ShortArray([-4, -3, -2, -1, 0, 1, 2, 3, 4])
arr2 = UIntArray([100_000, 100_001, 100_002, 100_003, 100_004])
empty = ULongArray()
print(arr1) # array('h', [-4, -3, -2, -1, 0, 1, 2, 3, 4])
print(arr2) # array('I', [100000, 100001, 100002, 100003, 100004])
print(empty.itemsize) # 4
Special thanks to trag1c, CircuitSacul, Micael Jarniac, bswck for helping to make this silly package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hurray-1.1.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
hurray-1.1.1-py3-none-any.whl
(4.3 kB
view hashes)