[Python-Dev] [unladen-swallow] PEP 384: Defining a Stable ABI (original) (raw)

Benjamin Peterson benjamin at python.org
Thu May 21 03:48:53 CEST 2009


2009/5/20 Stephen J. Turnbull <stephen at xemacs.org>:

Benjamin Peterson writes:  > 2009/5/20  <skip at pobox.com>:  >  > > I suspect it's not really germane to this discussion but if the  > > incref/decref functions were defined as inline would that effectively be  > > like using the macro versions vis a vis ABI compatibility?  >  > The code would be inlined into applications defeating the point of  > being able to change the implementation. :)

Hang on, are you sure Skip isn't on to something?  If the APIs are defined in such way that by making them function calls they preserve ABI compatibility, while making them inline gives performance, then the user (in this case, I really mean the vendor of an application that contains C modules, I guess) can choose which route to go, right?

In that case, they might as well be macros because changing would require recompiling.

-- Regards, Benjamin



More information about the Python-Dev mailing list