3 ms·
This is (a) wildly over expectations for open source and (b) a massive pain to maintain, and (c) not even the biggest timewaster of python, which is the packagi
by pjc50 11mo ago
This is (a) wildly over expectations for open source and (b) a massive pain to maintain, and (c) not even the biggest timewaster of python, which is the packaging "system".
- loeg 11mo ago> not even the biggest timewaster of python, which is the packaging "system". For frequent, short-running scripts: start-up time! Every import has to scan a billion different directories for where the module might live, even for standard modules included with the interpreter.
- tweakimp 11mo agoIn the near future we will use lazy imports :) https://peps.python.org/pep-0810/ https://peps.python.org/pep-0810/
- theLiminator 11mo agoThis can't come soon enough. Python is great for CLIs until you build something complex and a simple --help takes seconds. It's not something easily worked around without making your code very ugly.
- peterfirefly 11mo agoIt's not that hard to handle --help and --version separately before importing anything.
- eru 11mo agoYou could, but it doesn't really seem all that useful? I mean, when are you ever going to run this in a hot loop?
- eru 11mo ago> [...] not even the biggest timewaster of python, which is the packaging "system". The new `uv` is making good progress there.