On 15.10.12 17:04, Chris Angelico wrote:
> On Tue, Oct 16, 2012 at 12:55 AM, Debashish Saha <silid...@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))()


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to