[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] PEP 590: vectorcall without tp_call

On 5/29/19 3:36 PM, Jeroen Demeyer wrote:
> On 2019-05-29 15:29, Petr Viktorin wrote:
>> That sounds like a good idea for PyType_FromSpec.
> I don't think we're planning to support vectorcall in PyType_FromSpec 
> for now. That's maybe for 3.9 when vectorcall is no longer provisional.
>> For static types I either wouldn't bother at all, or only check in debug
>> builds and fail with Py_FatalError.
> So basically an assert(...)?

Yes. That's the usual way to let C extension authors know they did 
something wrong.