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


Groups > comp.lang.python > #31308 > unrolled thread

Re: how to insert random error in a programming

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2012-10-15 16:08 +0200
Last post2012-10-15 16:08 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#31308 — Re: how to insert random error in a programming

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2012-10-15 16:08 +0200
SubjectRe: how to insert random error in a programming
Message-ID<mailman.2210.1350310102.27098.python-list@python.org>
----- 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web