[issue10880] do_mkvalue and 'boolean'
Yuriy
report at bugs.python.org
Sun Feb 27 11:05:38 CET 2011
Yuriy <irov13 at mail.ru> added the comment:
+ 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 <report at bugs.python.org>
<http://bugs.python.org/issue10880>
_______________________________________
More information about the Python-bugs-list
mailing list