Hello World

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Dec 22 13:48:03 EST 2014


On 22/12/2014 15:39, Skip Montanaro wrote:
>
> On Mon, Dec 22, 2014 at 9:22 AM, Steven D'Aprano
> <steve+comp.lang.python at pearwood.info
> <mailto:steve%2Bcomp.lang.python at 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




More information about the Python-list mailing list