Antoine Pitrou added the comment: Actually, _Py_DOWNCAST may be better (not a public API). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19692> _______________________________________