Skip to content

Commit 5150a7e

Browse files
committed
Add note about when precompiling was added
1 parent a9d5bf2 commit 5150a7e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/src/markdown/fnmatch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ The imposed pattern limit and corresponding `limit` option was introduced in 6.0
5353

5454
## Precompiling
5555

56+
/// new | New 10.1
57+
///
58+
5659
While patterns are often cached, auto expanding patterns, such as `'file{a, b, c}'` will have each individual
5760
permutation cached (up to the cache limit), but not the entire pattern. This is to prevent the cache from exploding with
5861
really large patterns such as `{1..100}`. Essentially, individual patterns are cached, but not the expansion of a
@@ -172,6 +175,9 @@ pattern or a list of patterns.It returns a list of all files that matched the pa
172175

173176
#### `fnmatch.compile` {: #compile}
174177

178+
/// new | New 10.1
179+
///
180+
175181
```py
176182
def compile(patterns, *, flags=0, limit=1000, exclude=None):
177183
```

docs/src/markdown/glob.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ The imposed pattern limit and corresponding `limit` option was introduced in 6.0
186186

187187
## Precompiling
188188

189+
/// new | New 10.1
190+
///
191+
189192
While patterns are often cached, auto expanding patterns, such as `'file{a, b, c}'` will have each individual
190193
permutation cached (up to the cache limit), but not the entire pattern. This is to prevent the cache from exploding with
191194
really large patterns such as `{1..100}`. Essentially, individual patterns are cached, but not the expansion of a
@@ -619,6 +622,9 @@ Translate patterns now provide capturing groups for [`EXTGLOB`](#extglob) groups
619622

620623
#### `glob.compile` {: #compile}
621624

625+
/// new | New 10.1
626+
///
627+
622628
```py
623629
def compile(patterns, *, flags=0, limit=1000, exclude=None):
624630
```

0 commit comments

Comments
 (0)