Skip to content

Move to use pathlib instead of os.path and pathtools #556

@rrzaripov

Description

@rrzaripov

This issue created for discuss about moving to use pathlib.
I have a next questions about this:

  • pathtools last updated in 2016, can pathlib replace it?
  • pathlib is a part of CPython from version 3.4 and available for version 2.7 as additional package (but 2.7 support dropping in next year, so this is not so critical). And if answer on the first question is yes, we decrease count of dependencies.
  • in pathlib path is a object, not a string as in os.path. No more think about encodings, it is "bytes" or "str", os.path.sep, startswith and etc.

Also, I want to know, maybe any potential problems for moving to pathlib? What youre think about this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions