summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSaiyang Gou <gousaiyang@163.com>2021-04-21 22:42:55 (GMT)
committerGitHub <noreply@github.com>2021-04-21 22:42:55 (GMT)
commita32f8fe7133aad4f3cf8946534e3b79a5f2659da (patch)
tree928495171f025cb05975d53ea1621df05ade92b0 /Doc/library
parent7b86e47617d81a4b14d929743425f448971e8c86 (diff)
downloadcpython-a32f8fe7133aad4f3cf8946534e3b79a5f2659da.zip
cpython-a32f8fe7133aad4f3cf8946534e3b79a5f2659da.tar.gz
cpython-a32f8fe7133aad4f3cf8946534e3b79a5f2659da.tar.bz2
bpo-43756: Add new audit event for new arguments added to glob.glob (GH-25239)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/glob.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst
index 3fdba69..215f60d 100644
--- a/Doc/library/glob.rst
+++ b/Doc/library/glob.rst
@@ -65,6 +65,7 @@ For example, ``'[?]'`` matches the character ``'?'``.
match.
.. audit-event:: glob.glob pathname,recursive glob.glob
+ .. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.glob
.. note::
Using the "``**``" pattern in large directory trees may consume
@@ -83,6 +84,13 @@ For example, ``'[?]'`` matches the character ``'?'``.
without actually storing them all simultaneously.
.. audit-event:: glob.glob pathname,recursive glob.iglob
+ .. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
+
+ .. versionchanged:: 3.5
+ Support for recursive globs using "``**``".
+
+ .. versionchanged:: 3.10
+ Added the *root_dir* and *dir_fd* parameters.
.. function:: escape(pathname)
@@ -128,4 +136,3 @@ default. For example, consider a directory containing :file:`card.gif` and
Module :mod:`fnmatch`
Shell-style filename (not path) expansion
-