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.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for chararray-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f31ac361b15e0bc2eb37612abba39abdbe6dcb3d393bb30e339de64ff6d38b |
|
MD5 | a3dac61480d23f7bdde43b3c95457dbe |
|
BLAKE2b-256 | decb234ac01893bd208dca3c750db2b3bc4f296e27f348c009cdb05ca7f22d91 |