Larry Hastings added the comment:
I think this is silly.
Python has a well-understood concept of "truth":
https://docs.python.org/3/library/stdtypes.html#truth-value-testing
I assert that the reason people used the "i" format unit for what are really
boolean values is because a) the "p" format unit wasn't added until very
recently, and b) they were lazy and it was easy to copy-and-paste from other
code.
Rather than perpetuate these misguided hacks, when converting code to Argument
Clinic we should convert them to properly support truth as defined in Python.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24037>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com