Skip to content

pathlib relative_to() can give confusing error message #67271

@cjerdonek

Description

@cjerdonek
BPO 23082
Nosy @pitrou, @cjerdonek, @zooba, @miss-islington, @tirkarthi, @idomic, @rotuna
PRs
  • bpo-23082: Better error message for PurePath.relative_to() from pathlib #19611
  • [3.9] bpo-23082: Better error message for PurePath.relative_to() from pathlib (GH-19611) #20395
  • 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 = 'https://github.com/pitrou'
    closed_at = <Date 2020-05-25.19:43:02.507>
    created_at = <Date 2014-12-18.13:37:19.235>
    labels = ['easy', 'type-bug', 'library', '3.9', '3.10']
    title = 'pathlib relative_to() can give confusing error message'
    updated_at = <Date 2020-05-25.20:01:26.106>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2020-05-25.20:01:26.106>
    actor = 'miss-islington'
    assignee = 'pitrou'
    closed = True
    closed_date = <Date 2020-05-25.19:43:02.507>
    closer = 'steve.dower'
    components = ['Library (Lib)']
    creation = <Date 2014-12-18.13:37:19.235>
    creator = 'chris.jerdonek'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 23082
    keywords = ['patch', 'easy', 'newcomer friendly']
    message_count = 7.0
    messages = ['232876', '232877', '366433', '366568', '369838', '369914', '369919']
    nosy_count = 8.0
    nosy_names = ['pitrou', 'Arfrever', 'chris.jerdonek', 'steve.dower', 'miss-islington', 'xtreak', 'Ido Michael', 'rotuna']
    pr_nums = ['19611', '20395']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23082'
    versions = ['Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.9 (EOL)end of lifeeasystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions