Skip to content

adding: operator.in_ & operator.not_in #120376

Closed as not planned
Closed as not planned

Description

@dg-pb

Feature or enhancement

Proposal:

Small addition to operator module.

operator.__contains__ with arguments reversed.

Naming in line with operator.is_ & operator.is_not.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/proposed-additions-to-operator/49846/12

Linked PRs

Activity

  1. dg-pb commented on Jun 17, 2024

    @dg-pb
    ContributorAuthor

    Cancelled.

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

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions