Petr Viktorin <encu...@gmail.com> added the comment:

Also: PyType_GetSlot should return a function pointer, not data.

For some slots (Py_tp_doc, Py_tp_methods, Py_tp_members, Py_tp_getset) that 
ship has sailed, but for new ones, we should honor the distinction between data 
and function pointers. The C standard says they're distinct, so it might bite 
us in the future (e.g. compiling to WebAssembly).

----------

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

Reply via email to