Skip to content

improve fnmatch.fnmatch documentation #125848

@gordcodes

Description

@gordcodes

Documentation

In the documentation for fnmatch.
https://docs.python.org/3/library/fnmatch.html

It says that "Both parameters are case-normalized using os.path.normcase()".

This implies that the strings are always case normalized but if you dive into the description of os.path.normcase, it's actually OS dependent. Windows is case insensitive while non Windows is case sensitive.

So I would like the documentation clarified with something basic like " Both parameters are case-normalized using os.path.normcase(), which behaves differently based on OS."

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions