SSSergii Shcherbak@SergiiShcherbak·5da6d6eb0Python 3.15's lazy imports are great. Load modules only when first used.pythonlazy import pandas as pd2QuoteTranslate
Nnunomaduro@nunomaduro·5d4bb8ca9Interesting; what is the difference between that and regular importsQuoteTranslate
Nnunomaduro@nunomaduro·5dcc0ea2bso it parses the file (and their related code) only when the code is actually used? if yes, php lazy loads imports tooQuoteTranslate
RHRobert Holak@rholak·5dfd45f0aIt compiles the main code and creates a placeholder for the module. If the code execution hits something from the module, it either loads it from cached bytecode or it compiles the module in realtime.21:20 · Oct 23, 2026 · commit fd45f0aQuoteTranslateReply