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 georg.brandl, larry, serhiy.storchaka
Date 2014-01-16.20:18:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389903518.09.0.378571732154.issue20282@psf.upfronthosting.co.za>
In-reply-to
Content
Currently in many functions boolean argument parsed as int, with 'i' code. When converting this to Argument Clinic we can't write just

    interactive: int = False

because C default becomes "Py_False".

Instead we need explicitly specify c_default.

    interactive: int(c_default="0") = False

It would be good if True/False default values be converted to 1/0 C default values for the int type.

I think this is enough common situation.
History
Date User Action Args
2014-01-16 20:18:38serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, larry
2014-01-16 20:18:38serhiy.storchakasetmessageid: <1389903518.09.0.378571732154.issue20282@psf.upfronthosting.co.za>
2014-01-16 20:18:37serhiy.storchakalinkissue20282 messages
2014-01-16 20:18:37serhiy.storchakacreate