[Python-ideas] Working with Path objects: p-strings?
Sven R. Kunze
srkunze at mail.de
Wed Mar 30 05:15:05 EDT 2016
On 30.03.2016 10:56, Wes Turner wrote:
> so, like str but without +, %, .format ?
>
> class pathstr(str):
> __add__
> __mod__
> format
>
> python3: pathstr(str)?
> python2: pathstr(unicode)?
>
I am not sure I understand. Where is the Path in your code?
To make it more explicit: like "all methods of Path" + "all methods of
str". And no, format, % and + are nice to have in case you need them; so
why removing them?
Best,
Sven
More information about the Python-ideas
mailing list