Skip to content

Object data and contains and in membership operators #55

@jg-rp

Description

@jg-rp

The non-standard contains and in membership operators currently work for any sequence.

if operator == "in" and isinstance(right, Sequence):
return left in right
if operator == "contains" and isinstance(left, Sequence):
return right in left

We should change that so they work for any container (any mapping is a container).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions