This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 rhettinger
收信人 benjamin.peterson, eric.smith, georg.brandl, larry, loewis, mark.dickinson, python-dev, rhettinger, serhiy.storchaka
日期 2012-05-06.00:15:34
SpamBayes Score -1.0
Marked as misclassified
Message-id <1336263335.26.0.11458004972.issue14705@psf.upfronthosting.co.za>
In-reply-to
内容
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:35rhettinger修改recipients: + rhettinger, loewis, georg.brandl, mark.dickinson, larry, eric.smith, benjamin.peterson, python-dev, serhiy.storchaka
2012-05-06 00:15:35rhettinger修改messageid: <1336263335.26.0.11458004972.issue14705@psf.upfronthosting.co.za>
2012-05-06 00:15:34rhettinger链接issue14705 messages
2012-05-06 00:15:34rhettinger创建