<div dir="auto">Indeed, that sounds like a pretty straightforward bug in the stable ABI. You should file an issue on <a href="http://bugs.python.org">bugs.python.org</a> so it doesn't get lost (and if it's the main new stable ABI break in 3.7 then you should probably mark that bug as a release blocker so that Ned notices it).<div dir="auto"><br></div><div dir="auto">Unfortunately, very few people use the stable ABI currently, so it's easy for things like this to get missed. Hopefully it Qt starts using it then that will help us shake these things out... But it also means we need your help to catch these kinds of issues :-). Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 1, 2018, 06:51 Christian Tismer <<a href="mailto:tismer@stackless.com">tismer@stackless.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi friends,<br>
<br>
when implementing the limited API for PySide2, I recognized<br>
a little bug where a function was replaced by a macro.<br>
<br>
The file number.rst on python 3.6 says<br>
<br>
"""<br>
.. c:function:: int PyIndex_Check(PyObject *o)<br>
<br>
   Returns ``1`` if *o* is an index integer (has the nb_index slot of the<br>
   tp_as_number structure filled in), and ``0`` otherwise.<br>
"""<br>
<br>
Without notice, this function was replaced by a macro a while<br>
ago, which reads<br>
<br>
#define PyIndex_Check(obj) \<br>
   ((obj)->ob_type->tp_as_number != NULL && \<br>
    (obj)->ob_type->tp_as_number->nb_index != NULL)<br>
<br>
This contradicts PEP 384, because there is no way for non-heaptype<br>
types to access the nb_index field.<br>
<br>
If nobody objects, I would like to submit a patch that adds the<br>
function back when the limited API is active.<br>
I think to fix that before Python 3.7 is out.<br>
<br>
Ciao -- Chris<br>
<br>
-- <br>
Christian Tismer-Sperling    :^)   <a href="mailto:tismer@stackless.com" target="_blank" rel="noreferrer">tismer@stackless.com</a><br>
Software Consulting          :     <a href="http://www.stackless.com/" rel="noreferrer noreferrer" target="_blank">http://www.stackless.com/</a><br>
Karl-Liebknecht-Str. 121     :     <a href="http://pyside.org" rel="noreferrer noreferrer" target="_blank">http://pyside.org</a><br>
14482 Potsdam                :     GPG key -> 0xFB7BEE0E<br>
phone +49 173 24 18 776  fax +49 (30) 700143-0023<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank" rel="noreferrer">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/njs%40pobox.com" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/njs%40pobox.com</a><br>
</blockquote></div>