[Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API (original) (raw)
Victor Stinner victor.stinner at gmail.com
Wed Nov 8 11:37:20 EST 2017
- Previous message (by thread): [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
- Next message (by thread): [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I like these macros!
Technically, would it be possible to use an inline function instead of a macro for Python 3.7?
Victor
2017-11-08 17:30 GMT+01:00 Serhiy Storchaka <storchaka at gmail.com>:
Macros PySETREF and PyXSETREF were introduced in 3.6 and backported to all maintained versions ([1] and [2]). Despite their names they are private. I think that they are enough stable now and would be helpful in third-party code. Are there any objections against adding them to the stable C API? [3]
[1] https://bugs.python.org/issue20440 [2] https://bugs.python.org/issue26200 [3] https://bugs.python.org/issue31983
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com
- Previous message (by thread): [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
- Next message (by thread): [Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]