Remix.run Logo
ant6n 3 days ago

Next we need

    lazy import *
swiftcoder 3 days ago | parent [-]

Is that not the purpose of the global switch outlined in the PEP?

cgriswald 3 days ago | parent [-]

No. From the PEP:

  Where <mode> can be:
  
      "normal" (or unset): Only explicitly marked lazy imports are lazy
      "all": All module-level imports (except in try blocks and import *) become   potentially lazy
      "none": No imports are lazy, even those explicitly marked with lazy keyword

  When the global flag is set to "all", all imports at the global level of all modules are potentially lazy except for those inside a try block or any wild card (from ... import *) import.