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.

Author serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2015-04-23.10:33:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The 'i' format unit is often used for semantically boolean values. When the parameter has a default value, in Argument clinic you should specify it twice, as Python and C values:

    closefd: int(c_default="1") = True


    keepends: int(py_default="False") = 0

Proposed patch adds the boolint converter which makes a conversion for you.

    closefd: boolint = True
    keepends: boolint = False
Date User Action Args
2015-04-23 10:33:08serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2015-04-23 10:33:08serhiy.storchakasetmessageid: <>
2015-04-23 10:33:08serhiy.storchakalinkissue24037 messages
2015-04-23 10:33:08serhiy.storchakacreate