[$] Disabling Python's lazy imports from the command line
Date:
Tue, 10 Mar 2026 22:17:12 +0000
Description:
The advent of lazy imports in the Python language is upon us, now that PEP
810 ("Explicit lazy
imports") was accepted by the steering
council and the feature will appear in the upcoming Python 3.15 release
in October. There are a number of good reasons,
performance foremost, for wanting to defer spendingperhaps wastingthe
time to do an import before a needed symbol is used. However, there are
also good reasons not to want that behavior, at least in some cases. The tension between those two positions is what led to an earlier PEP rejection , but it is also playing into a recent discussion of the API used to control
lazy imports.
======================================================================
Link to news story:
https://lwn.net/Articles/1061112/
--- Mystic BBS v1.12 A49 (Linux/64)
* Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)