Yuriy <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue10880>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com