Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31308

Re: how to insert random error in a programming

Date 2012-10-15 16:08 +0200
From Jean-Michel Pichavant <jeanmichel@sequans.com>
Subject Re: how to insert random error in a programming
Newsgroups comp.lang.python
Message-ID <mailman.2210.1350310102.27098.python-list@python.org> (permalink)

Show all headers | View raw


----- 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: how to insert random error in a programming Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-10-15 16:08 +0200

csiph-web