Skip to content

gh-131798: Constant-fold _CONTAINS_OP_DICT for frozendict#148548

Merged
Fidget-Spinner merged 3 commits intopython:mainfrom
Wulian233:_CONTAINS_OP_DICT
Apr 14, 2026
Merged

gh-131798: Constant-fold _CONTAINS_OP_DICT for frozendict#148548
Fidget-Spinner merged 3 commits intopython:mainfrom
Wulian233:_CONTAINS_OP_DICT

Conversation

@Wulian233
Copy link
Copy Markdown
Contributor

@Wulian233 Wulian233 commented Apr 14, 2026

#148084 has already done the frozenset optimization for _CONTAINS_OP_SET. Similarly, _CONTAINS_OP_DICT can be handled in the same way.

That PR added news, which I haven't added yet. If needed, I can add later

Comment thread Lib/test/test_capi/test_opt.py
Copy link
Copy Markdown
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Fidget-Spinner Fidget-Spinner merged commit e0b56f0 into python:main Apr 14, 2026
73 checks passed
@Wulian233 Wulian233 deleted the _CONTAINS_OP_DICT branch April 14, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants