4 ms·
Wish pyproject.toml was enhanced to specify lazy loading via regexs.
by lenkite 1y ago
Wish pyproject.toml was enhanced to specify lazy loading via regexs.
- zahlman 1y agoI don't follow your reasoning. `pyproject.toml` has nothing to do with what happens at runtime. It's about building and packaging the code. It also doesn't say anything related to the modules that will be imported at runtime. It deals in the names of distributions, which are completely independent of `import` statements.
- lenkite 1y agoWhat I mean is that the `lazy` keyword need not be specified in the source Python files. Instead you can mark off a bunch of modules identified by regex as lazy. Perhaps `pyproject.toml` isn't the best place and it should be an independent python file.
- zahlman 1y agoThe issue is that Python code may validly stand apart from `pyproject.toml` or any other metadata.