bpo-15999: Clean up of handling boolean arguments. by serhiy-storchaka · Pull Request #15610 · python/cpython

@serhiy-storchaka

* Use the 'p' format unit instead of manually called PyObject_IsTrue().
* Pass boolean value instead 0/1 integers to functions that needs boolean.
* Convert some arguments to boolean only once.

@serhiy-storchaka

sir-sigurd

@serhiy-storchaka

lisroach pushed a commit to lisroach/cpython that referenced this pull request

Sep 10, 2019
* Use the 'p' format unit instead of manually called PyObject_IsTrue().
* Pass boolean value instead 0/1 integers to functions that needs boolean.
* Convert some arguments to boolean only once.

DinoV pushed a commit to DinoV/cpython that referenced this pull request

Jan 14, 2020
* Use the 'p' format unit instead of manually called PyObject_IsTrue().
* Pass boolean value instead 0/1 integers to functions that needs boolean.
* Convert some arguments to boolean only once.

websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request

Jul 20, 2020
* Use the 'p' format unit instead of manually called PyObject_IsTrue().
* Pass boolean value instead 0/1 integers to functions that needs boolean.
* Convert some arguments to boolean only once.