Skip to content

ntpath not adding slash after drive letters #124167

@matan1008

Description

@matan1008

Bug report

Bug description:

import ntpath
print(ntpath.join('c:', 'x', 'y'))

I would expect the following code to print 'c:\\x\\y', yet it prints 'c:x\\y', Would you expect a PR that changes the current behaviour?

CPython versions tested on:

3.10, 3.11, 3.12, 3.13, CPython main branch

Operating systems tested on:

Linux, Windows

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions