Skip to content

Support freezing an object on unpickling by default #175

@MatthieuDartiailh

Description

@MatthieuDartiailh

Currently the default pickling implementation will not produce a frozen object after unpickling if the pickled object is frozen.

This means it is hard to "guarantee" a particular class instance is frozen (by freezing it in __init__). We could store whether the object is frozen or not in the pickle to be able to freeze it in the default setstate method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions