We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 909b69a commit 7995d56Copy full SHA for 7995d56
1 file changed
Doc/whatsnew/3.15.rst
@@ -166,9 +166,8 @@ code that needs to detect lazy imports programmatically.
166
There are some restrictions on where the ``lazy`` keyword can be used. Lazy
167
imports are only permitted at module scope; using ``lazy`` inside a function,
168
class body, or ``try``/``except``/``finally`` block raises a :exc:`SyntaxError`.
169
-Star imports cannot be lazy (``lazy from module import *`` is a syntax error),
170
-and future imports cannot be lazy either (``lazy from __future__ import ...``
171
-raises :exc:`SyntaxError`).
+Neither star imports nor future imports can be lazy (``lazy from module import *``
+and ``lazy from __future__ import ...`` both raise :exc:`SyntaxError`).
172
173
.. seealso:: :pep:`810` for the full specification and rationale.
174
0 commit comments