Fair enough, I stand corrected for both points.
Le 07/04/2016 18:13, Zachary Ware a écrit : > On Thu, Apr 7, 2016 at 5:50 AM, Michel Desmoulin > <desmoulinmic...@gmail.com> wrote: >> Path objects don't have splitext() or and don't allow "string" / path. >> Those are the ones bugging me the most. > >>>> import pathlib >>>> p = '/some/test' / pathlib.Path('path') / 'file_with.ext' >>>> p > PosixPath('/some/test/path/file_with.ext') >>>> p.parent, p.stem, p.suffix > (PosixPath('/some/test/path'), 'file_with', '.ext') > > _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com