SSSergii Shcherbak@SergiiShcherbak·Oct 23a6d6eb0Python 3.15's lazy imports are great. Load modules only when first used.pythonlazy import pandas as pd2Quote
Nnunomaduro@nunomaduro·Oct 234bb8ca9Interesting; what is the difference between that and regular importsQuote
SSSergii Shcherbak@SergiiShcherbak·Oct 239960b40lazy 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·Oct 23eaa89f1What's the purpose of that? If you import it, it supposed you use it at least once21:17 · Oct 23, 2026 · commit eaa89f11QuoteReplyHide repliesSSSergii Shcherbak@SergiiShcherbak·Oct 231. 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.Reply
SSSergii Shcherbak@SergiiShcherbak·Oct 231. 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.Reply