Python 3.6+ natively uses pathlib, an object-oriented approach to paths and filenames. This is recommended as it replaces most of the "cumbersome" code from os.path and glob.glob (which use "dumb" string manipulation).
While the module pathlib2 is available lower python versions, there isn't guaranteed support in associated packages (numpy, scipy, etc) as there is in Python 3+ versions.
Therefore, this should happen in tandem with dropping python 2 support.
Python 3.6+ natively uses pathlib, an object-oriented approach to paths and filenames. This is recommended as it replaces most of the "cumbersome" code from os.path and glob.glob (which use "dumb" string manipulation).
While the module pathlib2 is available lower python versions, there isn't guaranteed support in associated packages (numpy, scipy, etc) as there is in Python 3+ versions.
Therefore, this should happen in tandem with dropping python 2 support.