Skip to content

pathlib's relative_to should behave like os.path.relpath #84538

Closed
@domragusa

Description

@domragusa
mannequin
BPO 40358
Nosy @pitrou, @eryksun, @ammaraskar, @CuriousLearner, @CAM-Gerlach, @barneygale, @domragusa, @bowiechen
PRs
  • bpo-40358: add strict parameter to pathlib.PurePath.relative_to #19807
  • gh-84538: add strict argument to pathlib.PurePath.relative_to #19813
  • Files
  • relative_to.patch
  • 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-04-22.00:03:03.148>
    labels = ['type-feature', 'library', '3.11']
    title = "pathlib's relative_to should behave like os.path.relpath"
    updated_at = <Date 2022-02-22.23:57:02.772>
    user = 'https://github.com/domragusa'

    bugs.python.org fields:

    activity = <Date 2022-02-22.23:57:02.772>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-04-22.00:03:03.148>
    creator = 'd.ragusa'
    dependencies = []
    files = ['49095']
    hgrepos = []
    issue_num = 40358
    keywords = ['patch']
    message_count = 11.0
    messages = ['366958', '367037', '367041', '367047', '367490', '367697', '367723', '370254', '393696', '393777', '408249']
    nosy_count = 10.0
    nosy_names = ['pitrou', 'python-dev', 'eryksun', 'ammar2', 'Socob', 'CuriousLearner', 'CAM-Gerlach', 'barneygale', 'd.ragusa', 'bowiechen']
    pr_nums = ['19807', '19813']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue40358'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibPython modules in the Lib dirtopic-pathlibtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions