[Python-Dev] When should pathlib stop being provisional? (original) (raw)
Zachary Ware zachary.ware+pydev at gmail.com
Thu Apr 7 12:13:22 EDT 2016
- Previous message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Next message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Apr 7, 2016 at 5:50 AM, Michel Desmoulin <desmoulinmichel at 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') / 'filewith.ext' p PosixPath('/some/test/path/file_with.ext') p.parent, p.stem, p.suffix (PosixPath('/some/test/path'), 'file_with', '.ext')
-- Zach
- Previous message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Next message (by thread): [Python-Dev] When should pathlib stop being provisional?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]