Re: [Python-Dev] Experiment an opt-in new C API for Python? (leave current API unchanged)

2018年11月14日 04:32:02 -0800

On 2018年11月14日 11:48:15 +0100
Victor Stinner <[email protected]> wrote:
> Le mer. 14 nov. 2018 à 11:24, Antoine Pitrou <[email protected]> a écrit :
> > For example in PyArrow we use PySequence_Fast_GET_ITEM() (*) 
> 
> Maybe PyArrow is a kind of C extension which should have one
> implementation for the new C API (PyPy) and one implementation for the
> current C API (CPython)?
Yes, maybe. I'm just pointing out that we're using those macros and
removing them from the C API (or replacing them with non-inline
functions) would hurt us.
> > and even
> > PyType_HasFeature() (**) (to quickly check for multiple base types with
> > a single fetch and comparison). 
> 
> I'm not sure that PyType_HasFeature() is an issue?
I don't know. You're the one who decides :-)
cheers
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to