On 15 October 2012 14:55, Debashish Saha <silid...@gmail.com> wrote:

> how to insert random error in a programming?
>

You could always just *write* the code with random errors from the start.
Try random code, like this:

from collections import defaultdict as ð
> def ire(ł, æ=[]):
> yield [ð(bool, {æ and æ[0]or object(): True}) [ł[0]] or [lambda: (yield
> ire(((æ.append(object()), æ[0])[0], ł))), int][(ł>ł[:3])|(ł<=ł[:2])]() or
> [1]][0]
> print(list(list(ire([2, 3, 3]))[0]))


Note that being random code this does nothing other than confuse people as
to why it does what it does do even though that is nothing other than the
mentioned confusion of others into its purpose.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to