In standard python ```python >>> x={"hello" : "world"} >>> "hello" in x True ``` In gpython ```python >>> x={"hello" : "world"} >>> "hello" in x Traceback (most recent call last): File "<stdin>", line 1, in <module> FIXME line of source goes here TypeError: "unsupported operand type(s) for iter: 'dict'" ```
Activity
ncw commentedon May 18, 2019
Implementing
__iter__for dict is very useful.However for
into be efficient we should be implementing__contains__gpython/py/sequence.go
Lines 121 to 147 in 61059b4
drew-512 commentedon Feb 16, 2022
suggest @sbinet close -- addressed in #65
sbinet commentedon Feb 22, 2022
fixed w/ #65 .