Re: newb: Creating Exception

2006-12-13 Thread johnny
I checked out couple of books from Library, one that I like called "Foundation of Python Network Programming", this is what I needed, code with understandable explantion. ;) Thread pooling and many others. Thanks all of you for the help. Dustan wrote: > Dennis Lee Bieber wrote: > > On 13 Dec 20

Re: newb: Creating Exception

2006-12-13 Thread Dustan
Dennis Lee Bieber wrote: > On 13 Dec 2006 03:52:49 -0800, "Dustan" <[EMAIL PROTECTED]> > declaimed the following in gmane.comp.python.general: > > > > > I didn't complete my thought. If you run into a situation like this, > > then you might want to look to the python documentation on the web for >

Re: newb: Creating Exception

2006-12-13 Thread Dustan
Dustan wrote: > johnny wrote: > > Documentation is not written for newbs, it's written by guys with 6yrs > > of experience FOR guys with 6yrs of experience. > > You might want to get a book on python, rather than depend on the > documentation, which is, as you say, written for more experienced > p

Re: newb: Creating Exception

2006-12-13 Thread Dustan
johnny wrote: > Thank you Dennis, > So when line 2, gets executed, its exception goes to do_some1_error. > And when line 3, gets executed, its exception goes to do_some2_error > and so on. > > line 1: try > line 2:do_some1 > line 3:do_some2 > line 4:do_some3 > line 5: except do_some1_

Re: newb: Creating Exception

2006-12-12 Thread johnny
Thank you Dennis, So when line 2, gets executed, its exception goes to do_some1_error. And when line 3, gets executed, its exception goes to do_some2_error and so on. line 1: try line 2:do_some1 line 3:do_some2 line 4:do_some3 line 5: except do_some1_error: line 6:whatever

newb: Creating Exception

2006-12-11 Thread johnny
I want to print individual exception for database connection, sql execution, database closing, closing the cursor. Can I do it with one try..catch or I need a nested try...catch? conn = adodb.NewADOConnection('mysql') conn.Connect('localhost', 'temp', 'temp', 'temp') sql