STINNER Victor <vstin...@python.org> added the comment:

> hmm I assume _PyDict_GetItemId has different reference semantics?

PyDict_GetItem() and _PyDict_GetItemId() return a borrowed reference.

PyObject_GetAttr() and _PyObject_GetAttrId() return a strong reference.

----------

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

Reply via email to