Skip to content

os.path.normcase incorrectly claims to do nothing #160904

Description

@JelleZijlstra

Documentation

The docstring for os.path.normcase on Posix is Normalize case of pathname. Has no effect under Posix and the documentation says "On other operating systems, return the path unchanged."

But this is false. It calls os.fspath, which normalizes path-like objects into strs and bytes. We should say so in the docstring and the docs.

(Adjacent to #160900.)

Linked PRs

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

    docsDocumentation in the Doc direasy

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions