[Python-ideas] `to_file()` method for strings

Sven R. Kunze srkunze at mail.de
Thu Mar 24 13:46:40 EDT 2016


On 24.03.2016 16:02, Koos Zevenhoven wrote:
> So, as mentioned before by others, all we need is the better interplay
> of pathlib with the rest of the stdlib and that people will learn
> about it. Personally, I now always use `pathlib` instead of `open`
> when I don't need to care about compatibility with old Python
> versions. Maybe some day, Path could be in builtins like open is now?

How do you handle Path <-> str conversion? Just living with the extra 
conversion step and don't bother with this ugliness?

Best,
Sven


More information about the Python-ideas mailing list