Josh Rosenberg <shadowranger+pyt...@gmail.com> added the comment:

Batteries-included extension modules aren't limited to the public and/or 
limited API; they use tons of undocumented internal APIs (everything to do with 
Py_IDENTIFIERs being an obvious and frequently used non-public API).

_PyObject_LookupSpecial is necessary to lookup special methods on the class of 
an instance (bypassing the instance itself) when no C level slot is associated 
with the special method (e.g. the math module using it to look up __ceil__ to 
implement math.ceil). Sure, each of these modules could reimplement it from 
scratch, but I'm not seeing the point in doing so.

----------
nosy: +josh.r

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

Reply via email to