You are absolutely right, the functionality is there, but the idea is to make
it easily available from the command line.
Here is a line (with shortened URL) from a Dockerfile which installs poetry as
suggested in the docs:
RUN python -c "from urllib.request import urlopen;
print(urlopen('https://.../install-poetry.py').read().decode())" | python
With the proposed functionality, the urllib could provide a download entry
point which would make the line look like this:
RUN python -m urrlib.download "https://.../install-poetry.py" | python
This is less error-prone, would also work for rather large downloads and
wouldn't be much effort to implement/test/maintain.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/BHSDIRVN4GATW3KO374FPFDTNG7L6ENN/
Code of Conduct: http://python.org/psf/codeofconduct/