消息 [160046]
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; |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-05-06 00:15:35 | rhettinger | 修改 | recipients:
+ rhettinger, loewis, georg.brandl, mark.dickinson, larry, eric.smith, benjamin.peterson, python-dev, serhiy.storchaka |
| 2012-05-06 00:15:35 | rhettinger | 修改 | messageid: <1336263335.26.0.11458004972.issue14705@psf.upfronthosting.co.za> |
| 2012-05-06 00:15:34 | rhettinger | 链接 | issue14705 messages |
| 2012-05-06 00:15:34 | rhettinger | 创建 | |
|