Message352773
I agree with Serhiy that !s solves the problem. But as a convenience it might be nice to add __format__. This issue pops up from time to time on Path and other types, and I don't think !s is very discoverable. Especially because formatting works with a specifier, but fails with one:
>>> format(path)
'/path/to/enlightenment'
>>> format(path, '>50')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to PosixPath.__format__ |
|
Date |
User |
Action |
Args |
2019-09-19 08:16:20 | eric.smith | set | recipients:
+ eric.smith, tebeka, pitrou, serhiy.storchaka |
2019-09-19 08:16:20 | eric.smith | set | messageid: <1568880980.88.0.970340257769.issue38222@roundup.psfhosted.org> |
2019-09-19 08:16:20 | eric.smith | link | issue38222 messages |
2019-09-19 08:16:20 | eric.smith | create | |
|