how to insert random error in a programming

Joshua Landau joshua.landau.ws at gmail.com
Mon Oct 15 15:10:46 EDT 2012


On 15 October 2012 14:55, Debashish Saha <silideba at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121015/e706dc4d/attachment.html>


More information about the Python-list mailing list