On Fri, Sep 08, 2006, Michael Chermside wrote: > > def logError(msg): > try: > errorChannel.write(msg) > except IOError: > pass > > try: > callSomeCode() > except SomeException as err: > msg = str(msg) > logError(msg) > raise msg
This code is guaranteed to fail in Python 3.0, of course, because string exceptions aren't allowed. But your point is taken, I think. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "LL YR VWL R BLNG T S" -- www.nancybuttons.com _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com