Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Excluding names from limited API can break existing code that use them with 
defined Py_LIMITED_API. I wondering if corresponding functions should be added 
for PySequence_ITEM, PyObject_IS_GC, PyType_SUPPORTS_WEAKREFS, 
PyObject_GET_WEAKREFS_LISTPTR. Perhaps this should be discussed on Python-Dev.

Since PyList_GET_SIZE and PyList_GET_ITEM are defined only for non-limited API, 
it is better to wrap definitions of macros that use them (like 
PySequence_Fast_GET_SIZE and PySequence_Fast_GET_ITEM) in "#ifndef 
Py_LIMITED_API" ... "#endif".

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33738>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to