21.04.21 12:14, Paul Moore пише: > I don't have a particularly strong opinion here, other than to say I'm > not sure I like the upper case "I". It looks far too much like a lower > case "L" in the font I'm using here, which makes me think of C's > "long", so it's easy to confuse. So of the two options, I prefer !f, > !d, !i over !f, !i, !I.
Thank you. The upper case "I" is used in many formatting strings: struct, memoryview, array, PyArg_Parse, Py_BuildValue, and there are no plans for !l to confuse. But I follow you suggestion if there would not be other arguments. Also, %d is more common than %d, so using !d for lossy conversion to integer is understandable. Maybe we even repurpose rarely used %i in printf-style formatting for lossless conversion to integer. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/54LQKSDQJRSBAP3EYI4VAENMV5A7DYJD/ Code of Conduct: http://python.org/psf/codeofconduct/
