Yuriy <iro...@mail.ru> added the comment: sorry ^_^
+ test_var = Py_BuildValue("?", 0); + if (!PyBool_Check(test_var) || test_var == Py_True) { + PyErr_SetString(TestError, "Failed to Create boolean"); + return NULL; + } + + test_var = Py_BuildValue("?", 1); + if (!PyBool_Check(test_var) || test_var == Py_False) { + PyErr_SetString(TestError, "Failed to Create boolean"); + return NULL; + } ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10880> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com