On 10/26/05, nephish <[EMAIL PROTECTED]> wrote:
> Yeah, cool. i am just starting this part.
> i am glad i started with python.
> thanks for the help
if your app is willing to tolerate errors/crashes, then i would take
alan's advice and just letting the errors happen, as opposed to being
so careful with (and integrating Kent's suggestion for the full
traceback with):
try:
BLOCK
except Exception, e:
print e, traceback.print_exc()
# take some other evasive yet safe maneuver
i only use the above when integrating into large systems (that aren't
supposed to crash, that need some cleanup, and/or that need to take
other action). otherwise for simple scripts, i just let the darn
thing crash out and add in the handler for those errors.
cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2006,2001
http://corepython.com
wesley.j.chun :: wescpy-at-gmail.com
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor