Skip to content

Should frozendict be added to Argument Clinic? #145079

@johnslavik

Description

@johnslavik

Feature or enhancement

Proposal:

We already have a set+frozenset pair, so it seems sensible to add &PyFrozenDict_Type check alongside already present &PyDict_Type check. Unless we shouldn't add it until there is a strong existing practical use case?

Slightly offtopic, I believe it would be even better if we had a generic PyAnyDict_Check "picklock" in AC but this is no longer a converter and I'm not sure it's inline with what AC is supposed to do. I am thinking about it mainly in the context of #145076 which can just be solved with a manual if-check.

cc @vstinner

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions