Top "Try-except" questions

A form of error handling in Python and Delphi, similar to try/catch in C-like languages.

Is it correct to use a return statement within a try and except statement?

If I have such code in the end of function: try: return map(float, result) except ValueError, e: print "error", …

python methods exception-handling return try-except
very simple code, and getting error C2712, could not understand why

I'm having trouble for a while with error C2712: Cannot use __try in functions that require object unwinding, after narrowing …

c++ visual-studio try-except
Simply a try/except with lambda - Python?

Is there a way to simplify this try/except into a one line with lambda? alist = ['foo','bar','duh'] for …

python lambda try-except
Porting VC++'s __try/__except EXCEPTION_STACK_OVERFLOW to MinGW

I am trying to port some code using VC++'s try-except statement to MinGW: bool success = true; __try { //... } __except ((EXCEPTION_…

c++ visual-c++ mingw try-except
Try two expressions with `try except`

I have two expressions. I need to try one expression, if it is raise an exception try another, but if …

python sqlalchemy try-except
Calculating Precision, Recall and F-score in one pass - python

Accuracy, precision, recall and f-score are measures of a system quality in machine-learning systems. It depends on a confusion matrix …

python list machine-learning try-except precision-recall