4 ms·
IMO to fix these issues the first thing to do is to write an alternative to Python's `import`, more like a function call that works more similar to NodeJS' `req
by DemocracyFTW2 4y ago
IMO to fix these issues the first thing to do is to write an alternative to Python's `import`, more like a function call that works more similar to NodeJS' `require()`. That should start life in userland and only later become part of the language.
How to transition a bazillion packages though I do not know.
- BiteCode_dev 4y agoI have an article planned solely on imports. It saddens me to say, but imports are indeed a complicated topic on Python. The PYTHONPATH is not something people know about, and once they do, it's not intuitive. The weird handling of namespaces or relative paths doesn't help.