This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients eric.smith, pitrou, serhiy.storchaka, tebeka
Date 2019-09-19.14:31:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568903468.25.0.0695262241968.issue38222@roundup.psfhosted.org>
In-reply-to
Content
I am -0 on this. It is a can of worms. Once we add a trivial __format__ in Path, we will need to handle numerous requests for adding a trivial __format__ in many other classes. It is better to teach users to use !s (and this works also on older Python versions!).

As for Path, there many ways to convert it to string: str(), repr(), os.fspath(), os.fsdecode(), Path.as_posix(), Path.as_uri(), with possible normalization, converting to absolute or relative path. I would not bet that we will never have reasons to have a different format specifier language for Path.
History
Date User Action Args
2019-09-19 14:31:08serhiy.storchakasetrecipients: + serhiy.storchaka, tebeka, pitrou, eric.smith
2019-09-19 14:31:08serhiy.storchakasetmessageid: <1568903468.25.0.0695262241968.issue38222@roundup.psfhosted.org>
2019-09-19 14:31:08serhiy.storchakalinkissue38222 messages
2019-09-19 14:31:07serhiy.storchakacreate