Skip to content

Commit

Permalink
Describe behaviour when case_sensitive is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed May 2, 2023
1 parent ac1fe16 commit dc82494
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,10 @@ call fails (for example because the path doesn't exist).
PosixPath('setup.py'),
PosixPath('test_pathlib.py')]

By default, this method matches paths using platform-specific casing rules:
case-sensitive on POSIX, and case-insensitive on Windows. The
*case_sensitive* keyword-only argument can be set to true or false to
override this behaviour.
By default, or when the *case_sensitive* keyword-only argument is set to
``None``, this method matches paths using platform-specific casing rules:
case-sensitive on POSIX, and case-insensitive on Windows. Set
*case_sensitive* to ``True`` or ``False`` to override this behaviour.

.. note::
Using the "``**``" pattern in large directory trees may consume
Expand Down Expand Up @@ -1289,10 +1289,10 @@ call fails (for example because the path doesn't exist).
PosixPath('setup.py'),
PosixPath('test_pathlib.py')]

By default, this method matches paths using platform-specific casing rules:
case-sensitive on POSIX, and case-insensitive on Windows. The
*case_sensitive* keyword-only argument can be set to true or false to
override this behaviour.
By default, or when the *case_sensitive* keyword-only argument is set to
``None``, this method matches paths using platform-specific casing rules:
case-sensitive on POSIX, and case-insensitive on Windows. Set
*case_sensitive* to ``True`` or ``False`` to override this behaviour.

.. audit-event:: pathlib.Path.rglob self,pattern pathlib.Path.rglob

Expand Down

0 comments on commit dc82494

Please sign in to comment.