Uh oh!
There was an error while loading. Please reload this page.
gh-141510: Use frozendict in the _opcode_metadata - #144910
Conversation
Enhance py_metadata_generator.py to skip duplicates. Co-authored-by: Donghee Na <donghee.na@python.org>
corona10
left a comment
There was a problem hiding this comment.
We need agreement from the maintainer according to the SC recommendation.
vstinner
commented
Feb 17, 2026
opcode has no maintainer according to https://devguide.python.org/core-team/experts/ and I think that a review from 1 or 2 core devs should be enough here. |
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
Mar 2, 2026
Fidget-Spinner
commented
Mar 2, 2026
Hmm I'm not too sure. Semantically making it frozen dict is correct. However, do people use this in the wild or modify it in-place? I know it's read by PyTorch for example, but I don't know if it's modified. |
vstinner
commented
Mar 3, 2026
PyTorch uses the C API, include This internal header file declares data as read-only. Example:
It sounds weird to me to modify |
I think that we need to sync with Cinder and PyTorch people at core team Discord. |
vstinner
commented
Mar 5, 2026
Merged, thanks for the review. |
Enhance py_metadata_generator.py to skip duplicates. Co-authored-by: Donghee Na <donghee.na@python.org>
Enhance py_metadata_generator.py to skip duplicates.