Re:Exceptions (2003)
by untothebreach on Sunday September 01, 2013 @10:48PM
(#6313223)
It seems to be a pattern in Python APIs to allow the caller to decide if a given function call should throw an exception when an error occurs. For example,
would raise a KeyError, while
would return 'DEFAULT' instead.
[ Parent
| on HN ]
There are no comments on this comment yet.