A standard mutable character array implementation for Python.
Project description
chararray
A standard mutable character array implementation for Python.
>>> from chararray import chararray
>>> chars = chararray("abc")
>>> chars
chararray('abc')
>>> chars + 'def'
chararray('abcdef')
>>> chars
chararray('abc')
>>> chars += 'def'
>>> chars
chararray('abcdef')
>>> chars[:3]
chararray('abc')
>>> chars[3:]
chararray('def')
>>> chars[3:] = 'ghi'
>>> chars
chararray('abcghi')
>>> chars[0] = 'A'
>>> chars
chararray('Abcghi')
Installing
Get it via pip:
pip install chararray
Testing
Run pytest
Type Checking
Run mypy .
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
chararray-1.0.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for chararray-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d490eb18c65510676a6c14ec59f2a2d6a11e765e12dd952410bcef94d15116 |
|
MD5 | a79b396d18b614aaea4734328cf9f18f |
|
BLAKE2b-256 | 8351e71706405ca0090b645235bd1b0eccbe1a9970a34f1edeae297cb013715d |