Skip to content

The index method of the tuple is incorrect #124268

@liuhuang2099

Description

@liuhuang2099

Bug report

Bug description:

# The result is 0? why? I think it should be three

tupleTest = (1,5,'gg',True,'kk',False)
print(tupleTest.index(True))

CPython versions tested on:

3.12

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions