Does Python have a rope data structure?

When writing Python code, I came across the need for a string data structure that offers quick installation, access, and removal from arbitrary positions. The first data structure that came to mind was rope . Does Python have a rope data structure already implemented somewhere? I looked at the standard library and PyPI, but I did not see it. (This does not help to have a refactoring library for Python called Rope, or a company called Python Rope that sells a rope.)

+6
source share
1 answer

There are no libraries in the standard library, but there are implementations, for example. pyropes .


Also this list of various non-built-in data structure implementations for Python .

+7
source

Source: https://habr.com/ru/post/946874/


All Articles