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


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

Re: how to insert random error in a programming

Started bySerhiy Storchaka <storchaka@gmail.com>
First post2012-10-15 20:18 +0300
Last post2012-10-15 20:18 +0300
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to insert random error in a programming Serhiy Storchaka <storchaka@gmail.com> - 2012-10-15 20:18 +0300

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

FromSerhiy Storchaka <storchaka@gmail.com>
Date2012-10-15 20:18 +0300
SubjectRe: how to insert random error in a programming
Message-ID<mailman.2222.1350321510.27098.python-list@python.org>
On 15.10.12 17:04, Chris Angelico wrote:
> On Tue, Oct 16, 2012 at 12:55 AM, Debashish Saha <silideba@gmail.com> wrote:
>> how to insert random error in a programming?
> 
> how to ask question good in forumming?
> http://www.catb.org/~esr/faqs/smart-questions.html
> 
> But here's one way to do it:
> 
> raise random.choice((OSError,IOError,ZeroDivisionError,UnicodeDecodeError,AssertionError))()

I think OP means something like

programming[:0] = random.choice((OSError,IOError,ZeroDivisionError,UnicodeDecodeError,AssertionError))()

[toc] | [standalone]


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


csiph-web