File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -924,11 +924,15 @@ display lazy proxies before first use and the real objects thereafter.
924924Security Implications
925925=====================
926926
927- There are no known security vulnerabilities introduced by lazy imports.
928- Security-sensitive tools that need to ensure all imports are evaluated eagerly
929- can use :func: `!sys.set_lazy_imports ` with ``"none" `` to force
930- eager evaluation, or use :func: `!sys.set_lazy_imports_filter ` for fine-grained
931- control.
927+ Tools that install packages while performing imports from that the same
928+ environment should ensure all modules are imported eagerly, or reified, before
929+ the installation step, to avoid newly installed distributions from shadowing
930+ them.
931+
932+ Such tools can use :func: `!sys.set_lazy_imports ` with ``"none" `` to
933+ force eager evaluation, or provide a :func: `!sys.set_lazy_imports_filter ` function for
934+ fine-grained control.
935+
932936
933937How to Teach This
934938=================
You can’t perform that action at this time.
0 commit comments