Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: how to insert random error in a programming

Reply
Thread Tools

Re: how to insert random error in a programming

 
 
Serhiy Storchaka
Guest
Posts: n/a
 
      10-15-2012
On 15.10.12 17:04, Chris Angelico wrote:
> On Tue, Oct 16, 2012 at 12:55 AM, Debashish Saha <(E-Mail Removed)> 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,U nicodeDecodeError,AssertionError))()


I think OP means something like

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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
how to insert random error in a programming Debashish Saha Python 4 10-16-2012 02:27 AM
Re: how to insert random error in a programming Dave Angel Python 0 10-15-2012 02:21 PM
Re: how to insert random error in a programming Jean-Michel Pichavant Python 0 10-15-2012 02:08 PM
Re: how to insert random error in a programming Chris Angelico Python 0 10-15-2012 02:04 PM



Advertisments