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/150395.html below:

[Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API

[Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C APISerhiy Storchaka storchaka at gmail.com
Wed Nov 8 11:47:52 EST 2017
08.11.17 18:37, Victor Stinner пише:
> I like these macros!
> 
> Technically, would it be possible to use an inline function instead of
> a macro for Python 3.7?

No, unless there is a way to pass arguments by reference in C99. 
Py_SETREF(x, y) is the safe equivalent of

     x = y;
     Py_DECREF(x, y);

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