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

PR 5222 provides functions _PyObject_LookupAttr() and _PyObject_LookupAttrId() 
with alternate interface. Some code becomes even more simpler.

The possible drawback of this approach is that the compiler should allocate the 
variable for the result on the stack instead of passing the result in a 
register (unless compilers are smart enough for optimizing out this case).

----------

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

Reply via email to