STINNER Victor added the comment: Alex> In my opinion that should use PyLong_CheckExact +1 ---------- nosy: +haypo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17576> _______________________________________