how to insert random error in a programming

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Oct 15 10:08:20 EDT 2012


----- Original Message -----
> how to insert random error in a programming?
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

Here's an example

from random

raise Except(randome.randinteger(0,10,'error']): return




More information about the Python-list mailing list