# Feature or enhancement

### Proposal:

The accuracy of `ntpath.normpath()` & `ntpath.abspath()` can be improved:

```python
>>> import ntpath
>>> ntpath.normpath('C:.')
'C:.' # instead of 'C:'
>>> ntpath.abspath('C:\x00')
'C:\x00' # instead of 'C:\\Users\\wanne\\\x00'
>>> ntpath.abspath('./con')
'\\\\.\\con' # instead of 'C:\\Users\\wanne\\con'
>>> ntpath.abspath('./C:spam')
'C:\\Users\\wanne\\spam' # instead of 'C:\\Users\\wanne\\C:spam'
```

### Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

### Links to previous discussion of this feature:

- #117587

<!-- gh-linked-prs -->
### Linked PRs
* gh-119849
* gh-119938
<!-- /gh-linked-prs -->

Improve accuracy of `ntpath.normpath()` & `ntpath.abspath()`
This is a GitHub Issue
repo:cpython
owner:python
Title : Improve accuracy of `ntpath.normpath()` & `ntpath.abspath()`
Issue date:

--- start body ---
# Feature or enhancement

### Proposal:

The accuracy of `ntpath.normpath()` & `ntpath.abspath()` can be improved:

```python
>>> import ntpath
>>> ntpath.normpath('C:.')
'C:.' # instead of 'C:'
>>> ntpath.abspath('C:\x00')
'C:\x00' # instead of 'C:\\Users\\wanne\\\x00'
>>> ntpath.abspath('./con')
'\\\\.\\con' # instead of 'C:\\Users\\wanne\\con'
>>> ntpath.abspath('./C:spam')
'C:\\Users\\wanne\\spam' # instead of 'C:\\Users\\wanne\\C:spam'
```

### Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

### Links to previous discussion of this feature:

- #117587

<!-- gh-linked-prs -->
### Linked PRs
* gh-119849
* gh-119938
<!-- /gh-linked-prs -->

--- end body ---
