Message160046
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; |
|
Date |
User |
Action |
Args |
2012-05-06 00:15:35 | rhettinger | set | recipients:
+ rhettinger, loewis, georg.brandl, mark.dickinson, larry, eric.smith, benjamin.peterson, python-dev, serhiy.storchaka |
2012-05-06 00:15:35 | rhettinger | set | messageid: <1336263335.26.0.11458004972.issue14705@psf.upfronthosting.co.za> |
2012-05-06 00:15:34 | rhettinger | link | issue14705 messages |
2012-05-06 00:15:34 | rhettinger | create | |
|