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 Rosuav, larry, serhiy.storchaka
Date 2015-10-18.16:22:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445185334.52.0.93185349175.issue15999@psf.upfronthosting.co.za>
In-reply-to
Content
No, it is orthogonal to Argument Clinic. Usually converting to Argument Clinic didn't change semantic. However these changes conflicted with proposed patch.

Rebased patch is splitted on two patches.

bool_cleanup.patch. It almost doesn't change the behavior. It uses the "p" format unit instead of manually called PyObject_IsTrue(), passes boolean value instead 0/1 integers to functions that needs boolean, and made some arguments ("flush" in print(), "strict", "sort_keys" and "skipkeys" in json module) to be converted to boolean only once.

accept_bool.patch. It makes a number of functions to accept arbitrary objects in boolean context, not just False/True and ints representable as C int. But I prefer first to commit the patch for issue24037.
History
Date User Action Args
2015-10-18 16:22:14serhiy.storchakasetrecipients: + serhiy.storchaka, larry, Rosuav
2015-10-18 16:22:14serhiy.storchakasetmessageid: <1445185334.52.0.93185349175.issue15999@psf.upfronthosting.co.za>
2015-10-18 16:22:14serhiy.storchakalinkissue15999 messages
2015-10-18 16:22:13serhiy.storchakacreate