Skip to content

Implement missing methods to MappingProxy#3898

Merged
youknowone merged 4 commits into
RustPython:mainfrom
jopemachine:add-missing-method-mapping-proxy
Jul 18, 2022
Merged

Implement missing methods to MappingProxy#3898
youknowone merged 4 commits into
RustPython:mainfrom
jopemachine:add-missing-method-mapping-proxy

Conversation

@jopemachine

Copy link
Copy Markdown
Contributor

Fixes #3875.

@jopemachine jopemachine force-pushed the add-missing-method-mapping-proxy branch from d8f7241 to ad27a0f Compare July 16, 2022 04:14
@youknowone youknowone added the z-ca-2022 Tag to track contrubution-academy 2022 label Jul 16, 2022
Comment thread vm/src/builtins/mappingproxy.rs Outdated
@Snowapril

Copy link
Copy Markdown
Contributor

As you implement __or__ and __ior__ for mapping proxy, You can also implement number protocol for mappingproxy just by connecting the fields. The only fields that mappingproxy providing for number protocol are __or__ and __ior__. You can do that in this PR or seaprate PR

Comment thread Lib/test/test_types.py Outdated
Comment thread vm/src/builtins/mappingproxy.rs Outdated
Comment thread vm/src/builtins/mappingproxy.rs Outdated
Comment thread vm/src/builtins/mappingproxy.rs Outdated
@youknowone youknowone requested a review from qingshi163 July 16, 2022 13:44
@youknowone

Copy link
Copy Markdown
Member

@qingshi163 qingshi163 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks Great!

@youknowone youknowone merged commit 715dac9 into RustPython:main Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

z-ca-2022 Tag to track contrubution-academy 2022

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement missing methods to MappingProxy

4 participants