@@ -75,6 +75,10 @@ The :mod:`glob` module defines the following functions:
75
75
Using the "``** ``" pattern in large directory trees may consume
76
76
an inordinate amount of time.
77
77
78
+ .. note ::
79
+ This function may return duplicate path names if *pathname *
80
+ contains multiple "``** ``" patterns and *recursive * is true.
81
+
78
82
.. versionchanged :: 3.5
79
83
Support for recursive globs using "``** ``".
80
84
@@ -84,11 +88,6 @@ The :mod:`glob` module defines the following functions:
84
88
.. versionchanged :: 3.11
85
89
Added the *include_hidden * parameter.
86
90
87
- .. versionchanged :: 3.14
88
- Matching path names are returned only once. In previous versions, this
89
- function may return duplicate path names if *pathname * contains multiple
90
- "``** ``" patterns and *recursive * is true.
91
-
92
91
93
92
.. function :: iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False, \
94
93
include_hidden=False)
@@ -99,6 +98,10 @@ The :mod:`glob` module defines the following functions:
99
98
.. audit-event :: glob.glob pathname,recursive glob.iglob
100
99
.. audit-event :: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
101
100
101
+ .. note ::
102
+ This function may return duplicate path names if *pathname *
103
+ contains multiple "``** ``" patterns and *recursive * is true.
104
+
102
105
.. versionchanged :: 3.5
103
106
Support for recursive globs using "``** ``".
104
107
@@ -108,11 +111,6 @@ The :mod:`glob` module defines the following functions:
108
111
.. versionchanged :: 3.11
109
112
Added the *include_hidden * parameter.
110
113
111
- .. versionchanged :: 3.14
112
- Matching path names are yielded only once. In previous versions, this
113
- function may yield duplicate path names if *pathname * contains multiple
114
- "``** ``" patterns and *recursive * is true.
115
-
116
114
117
115
.. function :: escape(pathname)
118
116
0 commit comments