I just wrote some code using PySequence_Fast and PySequence_Fast_ITEMS and realized that it is probably not fully safe with free-threading.
So I suspect that we may eventually need to audit it's uses (and maybe similar ones), although I doubt that this is very problematic in practice, you should be able to easily create crashes by mutating a list while passing it to such a function.
I just wrote some code using
PySequence_FastandPySequence_Fast_ITEMSand realized that it is probably not fully safe with free-threading.So I suspect that we may eventually need to audit it's uses (and maybe similar ones), although I doubt that this is very problematic in practice, you should be able to easily create crashes by mutating a list while passing it to such a function.