Skip to content

Add in operator method to PyAny #2107

@davidhewitt

Description

@davidhewitt

We don't have a method for x in foo on PyAny.

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.

As per #1844 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions