<div dir="ltr">There's a large category of these features that is solved by ``python -c``. What's special about these particular tasks?</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 1, 2016 at 1:41 PM Michel Desmoulin <<a href="mailto:desmoulinmichel@gmail.com">desmoulinmichel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's dangerous to talk about a new feature the 1st of April, so I'll<br>
start by saying this one is not a joke.<br>
<br>
I read recently a proposal to allow md5 hashing doing python -m hashlib<br>
md5 filename.<br>
<br>
I think it's a great idea, and that can extend this kind of API to other<br>
parts of Python such as:<br>
<br>
python -m random randint 0 10 => print(random.randin(0, 10))<br>
python -m random urandom 10 => print(os.urandom(10))<br>
python -m uuid uuid4 => print(uuid.uuid4().hex)<br>
python -m uuid uuid3 => print(uuid.uuid3().hex)<br>
<br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>