Article 70WHZ [$] Explicit lazy imports for Python

[$] Explicit lazy imports for Python

by
jake
from LWN.net on (#70WHZ)
Importing modules in Python is ubiquitous; most Python programs startwith at least a few import statements. But the performance impactof those imports can be large-and may be entirely wasted effort if thesymbols imported end up being unused. There are multiple ways to lazilyimport modules, including one in the standard library, but none of them arepart of the Python language itself. Thatmay soon change, if the recently proposedPEP810 ("Explicit lazyimports") is approved.
External Content
Source RSS or Atom Feed
Feed Location http://lwn.net/headlines/rss
Feed Title LWN.net
Feed Link https://lwn.net/
Reply 0 comments