• Home
  • Raw
  • Download

Lines Matching full:except

92    ...     except ValueError:
99 :keyword:`except` keywords) is executed.
101 * If no exception occurs, the *except clause* is skipped and execution of the
106 :keyword:`except` keyword, the except clause is executed, and then execution
109 * If an exception occurs which does not match the exception named in the except
114 A :keyword:`try` statement may have more than one except clause, to specify
117 in other handlers of the same :keyword:`try` statement. An except clause may
120 ... except (RuntimeError, TypeError, NameError):
124 ``except ValueError, e:`` was the syntax used for what is normally
125 written as ``except ValueError as e:`` in modern Python (described
127 This means ``except RuntimeError, TypeError`` is not equivalent to
128 ``except (RuntimeError, TypeError):`` but to ``except RuntimeError as
131 The last except clause may omit the exception name(s), to serve as a wildcard.
142 except IOError as e:
144 except ValueError:
146 except:
150 The :keyword:`try` ... :keyword:`except` statement has an optional *else
151 clause*, which, when present, must follow all except clauses. It is useful for
158 except IOError:
167 :keyword:`except` statement.
173 The except clause may specify a variable after the exception name (or tuple).
184 ... except Exception as inst:
210 ... except ZeroDivisionError as detail:
239 ... except NameError:
267 ... except MyError as e:
348 :keyword:`except` clause (or it has occurred in an :keyword:`except` or
353 complicated example (having :keyword:`except` and :keyword:`finally` clauses in
359 ... except ZeroDivisionError:
381 :keyword:`except` clause and therefore re-raised after the :keyword:`finally`