Skip to content

Conversation

@priyanshu2282-cyber
Copy link

@priyanshu2282-cyber priyanshu2282-cyber commented Jan 13, 2026

__index__ can change the array’s class during multiplication. After that,
the old function is still called, which can cause a crash. This adds a
check to avoid that and raises TypeError instead.

A regression test is also added.

@bedevere-app
Copy link

bedevere-app bot commented Jan 13, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Jan 13, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant