Abort from type checking mismatch between _suggestions__generate_suggestions_impl
and _Py_CalculateSuggestions
#131936
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
This is a silly one:
_suggestions__generate_suggestions_impl
, which checks whether thecandidates
is a list or subclass, calls_Py_CalculateSuggestions
, which checks whethercandidates
is an exact list instance with an assert that fails if_suggestions._generate_suggestions
receives an instance of a list subclass.CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows, Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a6+ (heads/main:be2d2181e62, Mar 31 2025, 07:30:17) [GCC 11.4.0]
Linked PRs
_Py_CalculateSuggestions
#131943_suggestions._generate_suggestions
#131945_suggestions._generate_suggestions
(GH-131945) #131949The text was updated successfully, but these errors were encountered: