Skip to content

Commit de2c532

Browse files
committed
Better introduce the global lazy imports flag
1 parent 994f440 commit de2c532

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

peps/pep-0810.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ Other design decisions
206206
context.
207207

208208
* In addition, it is useful to provide a mechanism to activate or deactivate
209-
lazy imports at a global level. While the primary design centers on explicit
210-
syntax, there are scenarios -- such as large applications, testing
211-
environments, or frameworks -- where enabling laziness consistently across
209+
lazy imports for all code running in the interpreter
210+
(referred to in this PEP as the 'global lazy imports flag').
211+
While the primary design centers the explicit ``lazy import`` syntax,
212+
there are scenarios -- such as large applications, testing environments,
213+
or frameworks -- where enabling laziness consistently across
212214
many modules provides the most benefit. A global switch makes it easy to
213215
experiment with or enforce consistent behavior, while still working in
214216
combination with the filtering API to respect exclusions or tool-specific

0 commit comments

Comments
 (0)