Skip to content

1.6.2: frozenlist does not work with deepcopy #659

@Sazoks

Description

@Sazoks

I introduced the problem in 1.6.2 for using the dependency_injector library.

dependency_injector creates a deep copy for you (maybe someday, when and why, it will happen).

How to check:

from copy import deepcopy
import frozenlist from FrozenList

deepcopy(FrozenList([1, 2, 3]))

Error: TypeError: self._frozen cannot be converted to a Python object for pickling

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions