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

This comment was marked as resolved.

@bedevere-app

This comment was marked as resolved.

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