Skip to content
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

Shouldn't distlib.metadata.Metadata.dictionary be renamed into _dictionary (or instead return the results equivalent to the ones returned by todict)? #193

Open
KOLANICH opened this issue Feb 12, 2023 · 0 comments

Comments

@KOLANICH
Copy link

Is your feature request related to a problem? Please describe.
.dictionary and .todict() return different results for Metadata 2.1, which is confusing (one uses tab-completion, sees dictionary, reads it, sees the dict, but it turns out the dict is incomplete (i.e. 'project_url' and other keys form ._legacy are missing), and after digging into the source one understands that one needs to use .todict() instead).

Describe the solution you'd like

  1. move .dictionary to ._dictionary.
  2. optionally create a dictionary read-only property returning the same as .todict()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant