Как в Python перехватить предупреждения, как если бы они были исключениями?

Сторонняя библиотека (написанная на C), которую я использую в своем коде на Python, выдает предупреждения. Я хочу иметь возможность использовать синтаксис try except для правильной обработки этих предупреждений. Does any know how ...

The FF4 delivers an app tab feature and it looks like both Gmail and Twitter have some notification code when a new mail or tweet come the app tab would look like a litter lighter. Does any know how to operate the app tab with the notification? I can see the code of a pinned application of IE9 with similar function. But I could not run into any document of FF.

10
задан adlawson 28 January 2013 в 13:08
поделиться