You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, sets are not handled in comparisons with dict views:
In Python:
>>>d= {1: 2}
>>>d.keys() ==set([1])
True
while in RustPython:
>>>>>d= {1: 2}
>>>>>d.keys() ==set([1])
False
In CPython, the corresponding implementation (dictview_richcompare) calls another function that iterates through the view and continuously calls __contains__ on the other object (see all_contained_in function).
Activity
zetwhite commentedon Oct 16, 2021
Hi. Is there anyone working on this issue?
If not, I'd like to work on it.
DimitrisJim commentedon Oct 16, 2021
@zetwhite no one else has requested so I'm assuming that no. Go for it!
youknowone commentedon Oct 23, 2021
I reviewed this issue but this is not a good first issue.