raise or not to raise [Newbie]

Robert Kern robert.kern at gmail.com
Sat Feb 3 16:40:45 EST 2007


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 code was using exceptions to get at
particular information that, at the time, was only available through a traceback.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list