Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tweakimp
· 11mo ago · 0 comments
In the near future we will use lazy imports :)
https://peps.python.org/pep-0810/
Comments
[–]
theLiminator
11mo ago
This 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 ago
It's not that hard to handle --help and --version separately before importing anything.
[–]
eru
11mo ago
You could, but it doesn't really seem all that useful? I mean, when are you ever going to run this in a hot loop?