|
|
|
|
|
by mannykannot
618 days ago
|
|
> ...and doesn't accidentally handle the wrong exceptions... What support does Python offer, to the author of a function, for determining what would be the wrong exceptions for it to handle? How, in Python, does the author of a function signal, to the functions she is calling, which exceptions they should not handle? As I alluded to in my previous post, the Python language and documentation does not even give programmers a good accounting of what exceptions the library functions might throw. |
|
Other languages, notably Java, have tried the "functions document what they can raise" idea. Everyone seems to hate the result.