Warnings killing my performance

Kylotan kylotan at hotmail.com
Sat Feb 7 17:14:06 EST 2004


Peter Otten <__peter__ at web.de> wrote in message news:<c02ubl$qqt$07$1 at news.t-online.com>...

> def disableWarnings():
>     def _theevilunwarner(*args):
>         pass
>     import warnings
>     warnings.warn = _theevilunwarner
>     warnings.warn_explicit = _theevilunwarner 

Heh, that's great. However, I don't think it really scales well to a
full application, does it? :)

> (*) Your email client seems to replace normal space with evil lookalikes, so
> I had to delete and reinsert the entire whitespace.

I'm posting through Google Groups; my ISP doesn't carry more than the
last 6 threads of comp.lang.python, or indeed many other newsgroups. I
have no idea why.

-- 
Ben Sizer



More information about the Python-list mailing list