What if you want to import a lib in two different scripts, would you have to call your import function with the given version (and permissions I suppose, if you want to follow Deno's path) every time ?
IMHO, being able to set the permissions of an imported library like Deno does could be interesting to protect Python users, but that would mean having to specify the permissions of the lib, ie. it wouldn't be able to write any file or start any kind of background process by default, unless explicitly granted by your module.
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/QDNTQXZNWO6JX5DXDIE4D4MIW3SVW3BM/ Code of Conduct: http://python.org/psf/codeofconduct/