@@ -75,6 +75,10 @@ The :mod:`glob` module defines the following functions:
7575 Using the "``** ``" pattern in large directory trees may consume
7676 an inordinate amount of time.
7777
78+ .. note ::
79+ This function may return duplicate path names if *pathname *
80+ contains multiple "``** ``" patterns and *recursive * is true.
81+
7882 .. versionchanged :: 3.5
7983 Support for recursive globs using "``** ``".
8084
@@ -84,11 +88,6 @@ The :mod:`glob` module defines the following functions:
8488 .. versionchanged :: 3.11
8589 Added the *include_hidden * parameter.
8690
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-
9291
9392.. function :: iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False, \
9493 include_hidden=False)
@@ -99,6 +98,10 @@ The :mod:`glob` module defines the following functions:
9998 .. audit-event :: glob.glob pathname,recursive glob.iglob
10099 .. audit-event :: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
101100
101+ .. note ::
102+ This function may return duplicate path names if *pathname *
103+ contains multiple "``** ``" patterns and *recursive * is true.
104+
102105 .. versionchanged :: 3.5
103106 Support for recursive globs using "``** ``".
104107
@@ -108,11 +111,6 @@ The :mod:`glob` module defines the following functions:
108111 .. versionchanged :: 3.11
109112 Added the *include_hidden * parameter.
110113
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-
116114
117115.. function :: escape(pathname)
118116
0 commit comments