Re: raise or not to raise [Newbie]

2007-02-05 Thread Gabriel Genellina
En Sat, 03 Feb 2007 18:07:12 -0300, Jacol <[EMAIL PROTECTED]> escribió: > I understand that author generated exception and than extracted the name > of > function from the exeption. But is any sens in using exeptions service if > we have smthing simpler: just print for example? In my opinion n

Re: raise or not to raise [Newbie]

2007-02-04 Thread Bruno Desthuilliers
Jacol a écrit : > I understand that author generated exception and than extracted the name of > function from the exeption. But is any sens in using exeptions service if > we have smthing simpler: just print for example? In my opinion no, it > doesn't make sens. You're of course right. Exceptions

Re: raise or not to raise [Newbie]

2007-02-03 Thread Robert Kern
Jacol wrote: > I understand that author generated exception and than extracted the name of > function from the exeption. But is any sens in using exeptions service if > we have smthing simpler: just print for example? In my opinion no, it > doesn't make sens. You are correct. The author of that co

Re: raise or not to raise [Newbie]

2007-02-03 Thread Paddy
On Feb 3, 9:07 pm, Jacol <[EMAIL PROTECTED]> wrote: > I understand that author generated exception and than extracted the name of > function from the exeption. But is any sens in using exeptions service if > we have smthing simpler: just print for example? In my opinion no, it > doesn't make sens.

Re: raise or not to raise [Newbie]

2007-02-03 Thread Jacol
I understand that author generated exception and than extracted the name of function from the exeption. But is any sens in using exeptions service if we have smthing simpler: just print for example? In my opinion no, it doesn't make sens. Jacek -- http://mail.python.org/mailman/listinfo/python-li

raise or not to raise [Newbie]

2007-02-03 Thread Jacol
Hello everybody! I found this: http://mail.python.org/pipermail/python-list/1999-July/006344.html My question concernings "callerFunc" and is more general what is difference between: try: raise "xyz" except "xyz": print "This is smthing" and simpl