Skip to content

[3.15] gh-83731: Test that isinstance() ignores tuple subclass methods (GH-158000) - #159509

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-21a36aa-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-21a36aa-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Add a regression test to make sure isinstance() reads the items of a
tuple subclass directly, without calling its iter(), getitem()
or len().
(cherry picked from commit 21a36aa)

Co-authored-by: Vasiliy Kiryanov vasiliy.kiryanov@gmail.com

…pythonGH-158000)

Add a regression test to make sure isinstance() reads the items of a
tuple subclass directly, without calling its __iter__(), __getitem__()
or __len__().
(cherry picked from commit 21a36aa)

Co-authored-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants