Loop exception catching

Fredrik Lundh fredrik at pythonware.com
Wed Jan 25 02:47:09 EST 2006

Aldo Cortesi wrote:

> > What do you mean?
> Well, the problem with "input" is that it allows the user to supply an
> arbitrary Python expression, which will then be executed. Among other things,
> this means that your pet cat could make your script exit due to an uncaught
> exception by simply walking accross your keyboard. If your cat is sufficiently
> clever, it could also empty your bank account, email your entire porn
> collection to your mother, and then erase your hard drive.

but that the cat would be clever enough to make your script exit and then do
evil stuff from the shell is completely out of the question.


More information about the Python-list mailing list