On 22/12/2014 15:39, Skip Montanaro wrote:

On Mon, Dec 22, 2014 at 9:22 AM, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info
<mailto:steve%2bcomp.lang.pyt...@pearwood.info>> wrote:
 > Don't try this at home!
 >
 >
 > # download_naked_pictures_of_jennifer_lawrence.py
 > import os
 > os.system("rm ――rf /")

And because Steven *knows* some fool will "try this at home", he
cripples the rm command. Now where's the fun in that? :-)

Skip


I don't see any fun anywhere in this at all. How can one import and one os.system() call do any damage to anything? I'm guessing that rm is Bob Martin but who is rf? Shouldn't that be a backslash '\' on Windows?

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to