Unhandled exceptions checking
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Mon May 26 02:53:24 EDT 2008
On Sun, 25 May 2008 21:00:01 -0700, Yosifov Pavel wrote:
> OK. I understand point of view of all responders.
> It seems I surmised why it's very difficult to do in tool like
> PyChecker: not only functions/methods but usual Python expression can
> mask potential exception source. And this tool must know how to parse
> every expression deep (to object protocol methods, for example). But
> it's possible in principle...
So which *specific* exceptions can be thrown by this function:
def f():
raise globals()[raw_input()]()
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list