Is there any way in Python to determine what exceptions a (built-in) function might raise? For example, the documentation (http://docs.python.org/lib/built-in-funcs.html) for the built-in int(s) says nothing about the fact that it might raise a ValueError if s is not a validly formatted int.
This is a duplicate of http://stackoverflow.com/questions/58119/does-recompile-or-any-given-python-library-call-throw-an-exception