[issue45165] alighment format for nullable values
Eric V. Smith
report at bugs.python.org
Fri Sep 10 11:39:04 EDT 2021
Eric V. Smith <eric at trueblade.com> added the comment:
Why would you only want alignment, and not all string formatting options?
And if that's the case, just convert it to a string:
>>> f'{None!s:>8} {1:>8}'
' None 1'
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45165>
_______________________________________
More information about the Python-bugs-list
mailing list