Skip to content

Object data and contains and in membership operators #55

Closed

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).

Activity

  1. added
    enhancement
    on Mar 8, 2024
  2. jg-rp commented on Jul 6, 2024

    @jg-rp
    OwnerAuthor

    Closed by #63.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    JSONPathenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions