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
We have PySequence::contains - probably this just wants to be copied as PyAny::contains, with some tests to check this does behave like Python's in operator.
For design purposes, the in keyword means two things in Python. This was kind of covered in the linked PR where there was discussion of contains_key but I think it was kept out. The idea here then is to use PySequence_Contains for PyAny::contains, right? Is there any need to do a check first?
We don't have a method for
x in foo
onPyAny
.We have
PySequence::contains
- probably this just wants to be copied asPyAny::contains
, with some tests to check this does behave like Python'sin
operator.As per #1844 (comment)
The text was updated successfully, but these errors were encountered: