[issue38222] pathlib Path objects should support __format__
Serhiy Storchaka
report at bugs.python.org
Thu Sep 19 03:26:14 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Convert it to string first:
print(f'path is: {path!s:>50}')
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38222>
_______________________________________
More information about the Python-bugs-list
mailing list