Skip to content

ntpath.abspath no longer uses normpath #79130

Closed

Description

@rhwlo
mannequin
BPO 34949
Nosy @pfmoore, @tjguk, @zware, @zooba, @tirkarthi, @rhwlo

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 = <Date 2018-11-10.02:58:30.570>
created_at = <Date 2018-10-10.02:41:14.665>
labels = ['3.7', 'type-bug', 'library', 'OS-windows']
title = 'ntpath.abspath no longer uses normpath'
updated_at = <Date 2018-11-10.02:58:30.570>
user = 'https://github.com/rhwlo'

bugs.python.org fields:

activity = <Date 2018-11-10.02:58:30.570>
actor = 'eryksun'
assignee = 'none'
closed = True
closed_date = <Date 2018-11-10.02:58:30.570>
closer = 'eryksun'
components = ['Library (Lib)', 'Windows']
creation = <Date 2018-10-10.02:41:14.665>
creator = 'rhwlo'
dependencies = []
files = []
hgrepos = []
issue_num = 34949
keywords = []
message_count = 2.0
messages = ['327452', '329582']
nosy_count = 6.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'xtreak', 'rhwlo']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue34949'
versions = ['Python 3.6', 'Python 3.7']

Activity

  1. rhwlo commented on Oct 10, 2018

    rhwlomannequin
    MannequinAuthor

    After the changes from #8544, ntpath.abspath no longer calls normpath on the output of nt._getfullpathname. This unfortunately causes "python setup.py develop" on a project to become upset in some instances because two paths (which should be equal) differ by a trailing slash.

    Presumably this could be corrected by updating

    return _getfullpathname(path)
    to use normpath when it calls _getfullpathname.

  2. added
    3.7 (EOL)
    stdlib
    type-bug
    on Oct 10, 2018
  3. tirkarthi commented on Nov 10, 2018

    @tirkarthi
    Member

    Thanks for the report. I think this was a regression reported in https://bugs.python.org/issue31047#msg328322 and was fixed with #10082 . I think the regression was in 3.7.1 but the fix was made a little later that it was not part of the 3.7.1 release.

  4. transferred this issue fromon Apr 10, 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

    3.7 (EOL)OS-windowsstdlibtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions