Add os.path.isrelative() and improve ntpath.isabs()

Open
#44,626 29 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Review the historical win32_absolute_paths.patch and win32_absolute_paths_2.patch, the ntpath.isabs() behavior, and dependency bpo-15414 before examining linked PR gh-113829. Done means resolving the Windows path semantics and adding os.path.isrelative() with appropriate documentation and tests.

Written by the indexing model from the issue text.

Description

stdlib type-feature
BPO 1669539
Nosy @mhammond, @terryjreedy, @tiran, @tjguk, @ezio-melotti, @bitdancer, @zware, @serhiy-storchaka
Dependencies
  • bpo-15414: os.path.join behavior on Windows (ntpath.join) is not well documented
  • Files
  • win32_absolute_paths.patch: Patch v1
  • win32_absolute_paths_2.patch: Patch v2 - with docs
  • 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 2007-02-26.23:07:51.000>
    labels = ['type-feature', 'library']
    title = 'Add os.path.isrelative() and improve ntpath.isabs()'
    updated_at = <Date 2019-04-26.17:48:31.669>
    user = 'https://bugs.python.org/jongfoster'
    

    bugs.python.org fields:

    activity = <Date 2019-04-26.17:48:31.669>
    actor = 'BreamoreBoy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2007-02-26.23:07:51.000>
    creator = 'jongfoster'
    dependencies = ['15414']
    files = ['7798', '7799']
    hgrepos = []
    issue_num = 1669539
    keywords = ['patch']
    message_count = 15.0
    messages = ['51978', '51979', '51980', '51981', '51982', '51983', '51984', '58743', '110297', '117582', '138215', '166066', '218560', '222855', '229053']
    nosy_count = 11.0
    nosy_names = ['mhammond', 'terry.reedy', 'jorend', 'christian.heimes', 'tim.golden', 'ezio.melotti', 'eckhardt', 'r.david.murray', 'zach.ware', 'serhiy.storchaka', 'mdengler']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1669539'
    versions = ['Python 3.5']
    

    Linked PRs
    • gh-113829
    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.