[issue22570] Better stdlib support for Path objects

Ram Rachum report at bugs.python.org
Thu Oct 16 20:11:39 CEST 2014


Ram Rachum added the comment:

I agree with Brett. Making old functions support `Path` sounds trivial to me, and I don't think there are any backward compatibility issues. Having to do str(path) every time you call a function is ugly. So I think that all stdlib functions that currently take a string path should be able to take a `Path` object.

I'll add to that the functions in the `zipfile` module.

----------
nosy: +cool-RR

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22570>
_______________________________________


More information about the Python-bugs-list mailing list