[Phillip] > By the way, I notice PEP 340 has two outstanding items with my name on > them; let me see if I can help eliminate one real quick. > > Tracebacks: it occurs to me that I may have unintentionally given the > impression that I need to pass in an arbitrary traceback, when in fact I > only need to pass in the current sys.exc_info().
I've updated the PEP (tying a couple of loose ends and making the promised change to the new API); I've decided to change the signature of __exit__() to be a triple matching the return value of sys.exc_info(), IOW the same as the "signature" of the raise-statement. There are still a few loose ends left, including the alternative API that you've proposed (which I'm not super keen on, to be sure, but which is still open for consideration). -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com