
report at bugs
May 5, 2012, 5:15 PM
Post #30 of 36
(55 views)
Permalink
|
|
[issue14705] Add 'bool' format character to PyArg_ParseTuple*
[In reply to]
|
|
Raymond Hettinger <raymond.hettinger [at] gmail> added the comment: I would have expected a bool parse code to insist on a boolean, so that: int x; PyArg_ParseTupleAndKeywords(args, kwds, "p:func", &x); would behave the same as: PyObject *o; int x; PyArg_ParseTupleAndKeywords(args, kwds, "O!:func", &PyBool_Type, &o); x = o == Py_True; ---------- nosy: +rhettinger _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue14705> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|