How to suppress exception printing to console?

Qi no at no.com
Fri Jun 1 10:06:25 EDT 2012


On 2012-6-1 15:46, Ulrich Eckhardt wrote:
>
> Don't use PyRun_SimpleString() or catch the exception there. The point
> is that it runs the whole string as a module, like running a script from
> the commandline, and a pending exception on exit is then reported to stdout.

Good hint, thanks.


-- 
WQ



More information about the Python-list mailing list