Skip to content

Add option to freeze a Dict upon creation #154

Open
@smprather

Description

@smprather

I find myself doing this a lot.

foo = Dict(i_return_a_dict())
foo.freeze()

I was thinking it would be nice to one-line that.

foo = Dict(i_return_a_dict(), freeze=True) # Or frozen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions