A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-November/150614.html below:

[Python-Dev] Make the stable API-ABI usable

[Python-Dev] Make the stable API-ABI usable [Python-Dev] Make the stable API-ABI usableSerhiy Storchaka storchaka at gmail.com
Sat Nov 18 04:42:36 EST 2017
18.11.17 11:13, Victor Stinner пише:
> The idea behind adding PyTuple_GET_ITEM() is to be able to compile C 
> extensions using it, without having to modify the code.

The simplest way to do this:

#define PyTuple_GET_ITEM PyTuple_GetItem

This will not add new names to ABI. Such defines can be added in a 
separate header file included for compatibility.

In any case making PyTuple_GET_ITEM() a function will break the 
following code:

     PyObject **items = &PyTuple_GET_ITEM(tuple, 0);
     Py_ssize_t size = PyTuple_GET_SIZE(tuple, 0);
     foo(items, size);

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4