Skip to content

tusharsadhwani/chararray

Repository files navigation

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 .

About

Standard mutable string (character array) implementation for Python.

Resources

License

Stars

Watchers

Forks

Languages