Path conversion for f-strings

Like repr and string the file system path is used alot and something like path!p might be handy.
Also it saves us to unnecessarily import os for only fspath().

On Mon, May 13, 2019 at 4:44 AM Batuhan Taskaya <isidentical@gmail.com> wrote:
Hi! Honestly, I feel a lack of use case context here. Just to mention, `pathlib.Path` like objects have there `__str__` implement to return a string representation of the path, i.e. `str(pathlib.Path("/home/batuhan"))` returns `"/home/batuhan"`

On Mon, May 13, 2019 at 4:44 AM Batuhan Taskaya <isidentical@gmail.com> wrote:
Hi! Honestly, I feel a lack of use case context here. Just to mention, `pathlib.Path` like objects have there `__str__` implement to return a string representation of the path, i.e. `str(pathlib.Path("/home/batuhan"))` returns `"/home/batuhan"`
participants (2)
-
Batuhan Taskaya
-
Serge Matveenko