Skip to content

Accepted keys for double-starred dictionaries #94728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Gouvernathor opened this issue Jul 10, 2022 · 2 comments
Closed

Accepted keys for double-starred dictionaries #94728

Gouvernathor opened this issue Jul 10, 2022 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@Gouvernathor
Copy link
Contributor

Gouvernathor commented Jul 10, 2022

Documentation

Following the discussion here, it should be clarified in the documentation what constraints are put on the keys of a dict being double-starred in a function call.
The implementation allows any and all str or subtypes of str : not any key of any type is accepted, but that at the same time the keys are not checked for being valid identifiers.
How much of theat should be documented as a feature, and how much as an implementation detail is still being discussed.

@Gouvernathor Gouvernathor added the docs Documentation in the Doc dir label Jul 10, 2022
@Gouvernathor
Copy link
Contributor Author

Double of #96397.

@jeff5
Copy link
Contributor

jeff5 commented Aug 30, 2022

Sorry I didn't spot this when opening #96393.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants