Skip to content

a bit better example in pathlib docs - maybe include example path that involves file in a folder(s)? #120794

@matkoniecz

Description

@matkoniecz

Documentation

See https://docs.python.org/3/library/pathlib.html#concrete-paths

Path('setup.py') and PosixPath('/etc') and WindowsPath('c:/Program Files/') both have single level only.

Would it be OK to have example with file in a folder? say PosixPath('/etc/hosts') (if that is correct way to pass more complex paths to constructor...)

Would PR changing this would be welcome and have chances to be reviewed?

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions