Skip to content

WindowsPath does not implement is_mount but ntpath implements and offers a ismount method #86943

Description

@d1b
mannequin
BPO 42777
Nosy @barneygale, @d1b
PRs
  • gh-86943: implement pathlib.WindowsPath.is_mount() #31458
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-12-29.04:17:59.726>
    labels = []
    title = 'WindowsPath does not implement is_mount but ntpath implements and offers a ismount method'
    updated_at = <Date 2022-02-21.01:48:37.395>
    user = 'https://github.com/d1b'

    bugs.python.org fields:

    activity = <Date 2022-02-21.01:48:37.395>
    actor = 'barneygale'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2020-12-29.04:17:59.726>
    creator = 'db'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42777
    keywords = ['patch']
    message_count = 1.0
    messages = ['383955']
    nosy_count = 2.0
    nosy_names = ['barneygale', 'db']
    pr_nums = ['31458']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42777'
    versions = []

    Activity

    1. d1b commented on Dec 29, 2020

      d1bmannequin
      MannequinAuthor

      pathlib.WindowsPath[0] does not implement is_mount but ntpath implements and offers a ismount[1] method. Perhaps WindowsPath is_mount can make use of ntpath.ismount ?

      [0] https://github.com/python/cpython/blob/master/Lib/pathlib.py#L1578
      [1] https://github.com/python/cpython/blob/master/Lib/ntpath.py#L248

    2. transferred this issue fromon Apr 10, 2022
    3. added a commit that references this issue on Aug 5, 2022
    4. added a commit that references this issue on Aug 11, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions