SSSergii Shcherbak@SergiiShcherbak·5da6d6eb0Python 3.15's lazy imports are great. Load modules only when first used.pythonlazy import pandas as pd2Quote
Nnunomaduro@nunomaduro·5d4bb8ca9Interesting; what is the difference between that and regular importsQuote
SSSergii Shcherbak@SergiiShcherbak·5d9960b40lazy ones load modules only when you use/call them in the app code. Python <3.15 regular imports loaded everything on startup.Quote
Ggiacomomasseron@giacomomasseron·5deaa89f1What's the purpose of that? If you import it, it supposed you use it at least once1QuoteTranslate
SSSergii Shcherbak@SergiiShcherbak·5d3fd68361. Faster startup. 2. Not always - some modules may be used only when certain conditions are met, e.g. when an agent first calls a tool that needs numpy.21:21 · Oct 23, 2026 · commit 3fd6836QuoteTranslateReply