sympy/sympy — pull request #2490 by toolforger (2013-10-01 07:20:08+00:00)
Title: Made GA_Printer robust against exception abort.

GA_Printer is now a context handler.
If used in that way, it will clean up after itself even in the presence of exceptions.

Made all uses of GA_Printer use the "with" form.