[Tomer] > > > as well as > > > traceback.format_exception (which i greatly dislike).
[Guido] > > Why? Because it once insulted you? [Tomer] > because it's tedious, repetitive and unreadable. > > try: > foo > except: > import traceback > import sys > tbtext = "".join(traceback.format_exception(*sys.exc_info())) > raise RemoteException(tbtext) > > it ought to have at least a nicer API, for instance, > tbtext = traceback.format_current() I don't really think you can blame format_exception() for returning a list. The use case I am guessing from your example (passing a traceback as a single string across an RPC boundary) isn't all that common and you ought to have only one place in your RPC package where you need to call it. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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