[Python-ideas] Re: String module name
You can do this via a function call; it does not require syntax support. And Deno has specific needs as they also need to fetch type information, so being able to parse out the URLs systematically has special meaning to deno. On Tue, Jun 16, 2020 at 2:06 AM wrote: > Yeah, but it still desire to be solved ... > > One of the use-cases is if I want to use `Brython`, it will be usable to > load the module or entire package from the internet and then to use it in > my application ... > > Issue with the right to access some resources could be solve with flags as > `Deno` did > ___ > 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/RXITTI3MWQU6L5QKFGUSL7K2MXI4IYVM/ > Code of Conduct: http://python.org/psf/codeofconduct/ > ___ 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/E2OBNEKY6VR6BNBNWX72YPV2Z7PPBHQ5/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] Re: String module name
Yeah, but it still desire to be solved ... One of the use-cases is if I want to use `Brython`, it will be usable to load the module or entire package from the internet and then to use it in my application ... Issue with the right to access some resources could be solve with flags as `Deno` did ___ 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/RXITTI3MWQU6L5QKFGUSL7K2MXI4IYVM/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] Re: String module name
On 16.06.20 10:00, redrad...@gmail.com wrote: You cannot trust PyPi either ... I think user should decide if it allows code from arbitrary URL to access filesystem, network or anything else as `wasmtime` and `deno` did If you want to do this, you can still download the code and use `importlib` to import it. But usually you want to import a whole package (or parts of it), not a stand-alone module. And this package might have dependencies on other packages. And these dependencies might even conflict with the dependencies of other packages that you are using. So this whole process is fairly complex and is better resolved before application startup. There exists a variety of tools that deal with package management (e.g. pip, poetry, ...). ___ 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/IQYYKZUQZS75IQYJIITP5R3PF3W7PP2X/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] Re: String module name
You cannot trust PyPi either ... I think user should decide if it allows code from arbitrary URL to access filesystem, network or anything else as `wasmtime` and `deno` did ___ 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/MYFCWPCDBUY27X2F53L5T5ER6YWGLGPC/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] Re: String module name
On Tue, Jun 16, 2020 at 12:19:00AM -, redrad...@gmail.com wrote: > from "https://python.org/some_module.py"; import name The last thing I want to see is modules start importing code from arbitrary, untrustworthy websites. > It will add possibility to run code with complex name of module Why is that a good idea? Why can't you just rename your module with a legal identifier and put it on the PYTHONPATH? It isn't enough to propose an idea to have it accepted. You have to explain why that idea is a good idea. If you think that it is so obvious why it is a good idea that you don't have to explain why, trust me, it's not. If it was so obvious, we would have done it by now. -- Steven ___ 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/XBUR7Y65DUMTQ6MKCPPPYRY2ICUAKCU7/ Code of Conduct: http://python.org/psf/codeofconduct/