[Python-Dev] PEP 590: vectorcall without tp_call (original) (raw)
Petr Viktorin encukou at gmail.com
Wed May 29 16:11:01 EDT 2019
- Previous message (by thread): [Python-Dev] PEP 590: vectorcall without tp_call
- Next message (by thread): [Python-Dev] PEP 590: vectorcall without tp_call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 PyTypeFromSpec. I don't think we're planning to support vectorcall in PyTypeFromSpec 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 PyFatalError. So basically an assert(...)?
Yes. That's the usual way to let C extension authors know they did something wrong.
- Previous message (by thread): [Python-Dev] PEP 590: vectorcall without tp_call
- Next message (by thread): [Python-Dev] PEP 590: vectorcall without tp_call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]