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.
|
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. |
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. |
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.