Le 06/08/2014 22:12, Ben Finney a écrit :pathlib lets you do operations on paths. It also gives you a string representation of the path that's expected to designate that path when talking to operating system APIs. It doesn't give you the possibility to store other semantic variations ("whether a new directory level must be created"); that's up to you to add those.
You seem to be saying that ‘pathlib’ is not intended to be helpful for
constructing a shell command.
(similarly, it doesn't have separate classes to represent "a file", "a directory", "a non-existing file", etc.)
Regards
Antoine.
_______________________________________________
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/guido%40python.org