aio-libs / frozenlist

`FrozenList` is a `list`-like structure that implements `collections.abc.MutableSequence` and can be made immutable.

Home Page:https://frozenlist.aio-libs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Readme should say why this is useful

cool-RR opened this issue · comments

It'll be nice if the readme could answer the question "Why would one want a mutable sequence that can be frozen", i.e. why is this module useful?

Is it to a avoid the copy that tuple(somelist) would entail?

Also, could freeze() be made to return self and its return type be declared in the stub as Sequence[T]?