@@ -166,9 +166,10 @@ Public functions
166
166
If *force * is true, modules are re-compiled even if the timestamps are up to
167
167
date.
168
168
169
- If *rx * is given, its search method is called on the complete path to each
169
+ If *rx * is given, its `` search `` method is called on the complete path to each
170
170
file considered for compilation, and if it returns a true value, the file
171
- is skipped.
171
+ is skipped. This can be used to exclude files matching a regular expression,
172
+ given as a :ref: `re.Pattern <re-objects >` object.
172
173
173
174
If *quiet * is ``False `` or ``0 `` (the default), the filenames and other
174
175
information are printed to standard out. Set to ``1 ``, only errors are
@@ -242,9 +243,10 @@ Public functions
242
243
cases where the source file does not exist at the time the byte-code file is
243
244
executed.
244
245
245
- If *rx * is given, its search method is passed the full path name to the
246
+ If *rx * is given, its `` search `` method is passed the full path name to the
246
247
file being compiled, and if it returns a true value, the file is not
247
- compiled and ``True `` is returned.
248
+ compiled and ``True `` is returned. This can be used to exclude files matching
249
+ a regular expression, given as a :ref: `re.Pattern <re-objects >` object.
248
250
249
251
If *quiet * is ``False `` or ``0 `` (the default), the filenames and other
250
252
information are printed to standard out. Set to ``1 ``, only errors are
0 commit comments