File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -231,7 +231,8 @@ Syntax restrictions
231231The soft keyword is only allowed at the global (module) level, **not ** inside
232232functions, class bodies, or ``try ``/``with `` blocks. Import statements that use the soft keyword
233233are *potentially lazy *. In addition, wild card imports will not be supported for lazy
234- import semantics by the soft keyword and will instead raise a syntax error.
234+ import semantics by the soft keyword and will instead raise a syntax error. Imports that
235+ can't be lazy are unaffected by the global lazy imports flag, and instead are always eager.
235236
236237Specifically:
237238
@@ -243,8 +244,6 @@ Specifically:
243244 or ``with `` block. This raises a ``SyntaxError ``.
244245
2452463. **No wild card imports **: ``lazy from module import * `` raises a ``SyntaxError ``.
246- Wild card ("star") imports are always eager, even when the global lazy
247- imports flag is enabled.
248247
249248Examples of syntax errors:
250249
You can’t perform that action at this time.
0 commit comments