3 ms·
You could do the numpy style API lazily. They would just need to each API as an object that does the imports dynamically.
by slaymaker1907 4y ago
You could do the numpy style API lazily. They would just need to each API as an object that does the imports dynamically.
- dalke 4y ago... yes. The PEP describes existing solutions, followed by a proposal for "a more general and comprehensive solution for lazy imports that can encompass all of the above use cases and does not impose detectable overhead in real-world use", to quote the PEP at https://peps.python.org/pep-0690/ https://peps.python.org/pep-0690/ .