Skip to content

PySequence_In is not documented #127896

Closed

Description

Documentation

PySequence_In is part of the limited C-API, and has no document. PEP 3100 ( https://peps.python.org/pep-3100/ ) says this function is "To be removed," but it has not been removed in the latest version, so documentation seems to be needed.

Linked PRs

Activity

  1. ghost added
    docsDocumentation in the Doc dir
    on Dec 13, 2024
  2. ZeroIntensity commented on Dec 13, 2024

    @ZeroIntensity
    Member

    New applications shouldn't use it, we just keep it for the limited API. I'm not sure we need to encourage more usage by documenting it.

  3. encukou commented on Dec 13, 2024

    @encukou
    Member

    It's exactly equivalent to PySequence_Contains.

    The docs should mention that it's deprecated, and show the preferred spelling.

  4. ZeroIntensity commented on Dec 15, 2024

    @ZeroIntensity
    Member

    No idea what the precedent is here, but I suspect that it should be soft deprecated for compatibility reasons.

  5. skirpichev commented on Dec 16, 2024

    @skirpichev
    Member

    The docs should mention that it's deprecated, and show the preferred spelling.

    Formally, it's not deprecated yet;)

    I suspect that it should be soft deprecated for compatibility reasons.

    Maybe not. Search on the Github shows only few projects, which use this. On another hand, support this has 0 maintenance burden.

  6. added a commit that references this issue on Dec 16, 2024
  7. added a commit that references this issue on Jan 8, 2025
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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions