Devin Jeanpierre added the comment: PyLong_FromVoidPtr works for uintptr_t, but not intptr_t. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17870> _______________________________________