Skip to content

Fully adopt pathlib.PurePath for file paths #4523

@SimonPeatman

Description

@SimonPeatman

✨ Feature Request

Iris uses os.path to handle file paths, but the standard in Python 3 is to use pathlib.PurePath objects. #3411 proposed adopting pathlib.PurePath and this is partially implemented by #3917. The present issue proposes replacing os.path with the use of pathlib across the whole of Iris.

Details

#3917 implements pathlib.PurePath for the main public functions only (load, load_cube, load_cubes, load_raw and save). See #3917 (review) for full details of what has been done and what is still to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueA good issue to take on if you're just getting started with Iris developmentType: Infrastructure

    Type

    No type

    Projects

    Status

    No status

    Status

    📌 Prioritised

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions