superstring.py
superstring.py copied to clipboard
A fast and memory-optimized string library for heavy-text manipulation in Python
With the introduction of the negative slicing feature, I figured we should add a simple test to verify functionality.
``` >>> "hi".replace("h", "H") Hi ``` Would be neat if it could take a dict so this worked: ``` >>> "hi".replace({"h": "i", "i": "h"}) ih ``` Or a regex (see...
Your library seems like it could take advantage of Cython for greater speedups (but no increase in mem-efficiency). See https://cython.org/