Home
last modified time | relevance | path

Searched full:except (Results 1 – 25 of 10950) sorted by relevance

12345678910>>...438

/external/python/cpython3/Tools/pybench/
DExceptions.py16 except:
20 except:
24 except:
28 except:
32 except:
36 except:
40 except:
44 except:
66 except:
70 except:
[all …]
/external/python/cpython2/Tools/pybench/
DExceptions.py16 except:
20 except:
24 except:
28 except:
32 except:
36 except:
40 except:
44 except:
66 except:
70 except:
[all …]
/external/python/cpython3/Lib/test/
Dtest_raise.py16 except:
31 except RuntimeError as e:
40 except IndexError as e:
43 except IndexError as exc2:
52 except:
55 except KeyError:
64 except:
77 except:
85 except:
87 except ValueError as e:
[all …]
Dtest_exceptions.py34 except exc as err:
38 except exc as err:
56 except EOFError:
83 except NameError: pass
95 except SyntaxError: pass
102 except TabError: pass
112 except TypeError: pass
119 except ZeroDivisionError: pass
123 except Exception as e: pass
134 except SyntaxError as e:
[all …]
Dtest_opcodes.py13 except NameError: pass
14 except ZeroDivisionError: pass
15 except TypeError: pass
17 except: pass
31 except OSError:
60 except: pass
63 except AClass: pass
66 except AClass: pass
69 except CClass: self.fail()
70 except: pass
[all …]
Dtest_exception_variations.py12 except:
30 except:
47 except:
61 except:
74 except:
84 except:
95 except:
109 except:
135 except:
156 except:
[all …]
Dtest_asyncgen.py33 except StopIteration as ex:
107 except StopIteration:
110 except Exception as ex:
119 except StopAsyncIteration:
122 except StopIteration as ex:
128 except Exception as ex:
161 except StopIteration as ex:
170 except StopAsyncIteration as ex:
197 except StopIteration as ex:
383 except ZeroDivisionError:
[all …]
/external/python/cpython2/Lib/sqlite3/test/
Ddbapi.py30 except ImportError:
125 except sqlite.OperationalError:
163 except sqlite.OperationalError:
165 except:
172 except sqlite.Warning:
174 except:
193 except ValueError:
195 except:
219 except sqlite.ProgrammingError:
227 except sqlite.ProgrammingError:
[all …]
/external/python/cpython3/Doc/tutorial/
Derrors.rst92 ... 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):
123 A class in an :keyword:`except` clause is compatible with an exception if it is
125 except clause listing a derived class is not compatible with a base class). For
[all …]
/external/python/cpython2/Tools/scripts/
Dpickle2db.py30 except ImportError:
34 except ImportError:
38 except ImportError:
42 except ImportError:
47 except ImportError:
60 except getopt.error:
73 except IOError:
83 except AttributeError:
89 except AttributeError:
95 except AttributeError:
[all …]
Ddb2pickle.py25 except ImportError:
29 except ImportError:
33 except ImportError:
37 except ImportError:
42 except ImportError:
55 except getopt.error:
69 except IOError:
78 except AttributeError:
84 except AttributeError:
90 except AttributeError:
[all …]
/external/python/cpython3/Tools/scripts/
Dpickle2db.py30 except ImportError:
34 except ImportError:
38 except ImportError:
42 except ImportError:
47 except ImportError:
60 except getopt.error:
73 except IOError:
83 except AttributeError:
89 except AttributeError:
95 except AttributeError:
[all …]
Ddb2pickle.py25 except ImportError:
29 except ImportError:
33 except ImportError:
37 except ImportError:
42 except ImportError:
55 except getopt.error:
69 except IOError:
78 except AttributeError:
84 except AttributeError:
90 except AttributeError:
[all …]
/external/python/cpython2/Lib/test/
Dtest_opcodes.py13 except NameError: pass
14 except ZeroDivisionError: pass
15 except TypeError: pass
17 except: pass
34 except: pass
37 except AClass: pass
40 except AClass: pass
43 except CClass: self.fail()
44 except: pass
50 except BClass, v:
[all …]
Dtest_exception_variations.py13 except:
31 except:
48 except:
62 except:
75 except:
85 except:
96 except:
110 except:
136 except:
157 except:
[all …]
Dtest_pep352.py52 except AttributeError:
74 except AttributeError:
86 except TypeError:
153 except TypeError:
162 except object_:
164 except TypeError:
166 except StandardError:
172 except (object_,):
174 except TypeError:
176 except StandardError:
[all …]
/external/python/cpython2/Doc/tutorial/
Derrors.rst92 ... 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
[all …]
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_except.py1 """Fixer for except statements with named exceptions.
5 - "except E, T:" where T is a name:
7 except E as T:
9 - "except E, T:" where T is not a name, tuple or list:
11 except E as t:
14 This is done because the target of an "except" clause must be a
17 - "except E, T:" where T is a tuple or list literal:
19 except E as t:
33 if n.children[0].value == 'except':
42 tail=(['except' ':' (simple_stmt | suite)]
[all …]
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_except.py1 """Fixer for except statements with named exceptions.
5 - "except E, T:" where T is a name:
7 except E as T:
9 - "except E, T:" where T is not a name, tuple or list:
11 except E as t:
14 This is done because the target of an "except" clause must be a
17 - "except E, T:" where T is a tuple or list literal:
19 except E as t:
33 if n.children[0].value == u'except':
42 tail=(['except' ':' (simple_stmt | suite)]
[all …]
/external/python/cpython3/Lib/test/libregrtest/
Drefleak.py12 except Exception:
22 except FileNotFoundError:
31 except OSError as e:
60 except ImportError:
136 except ImportError:
181 except KeyError:
189 except KeyError:
196 except KeyError:
203 except KeyError:
210 except KeyError:
[all …]
/external/python/cpython3/Lib/asyncio/
Dselector_events.py17 except ImportError: # pragma: no cover
37 except KeyError:
145 except InterruptedError:
147 except BlockingIOError:
160 except OSError:
184 except (BlockingIOError, InterruptedError, ConnectionAbortedError):
187 except OSError as exc:
231 except:
236 except Exception as exc:
252 except KeyError:
[all …]
/external/ply/ply/test/
Dtestlex.py6 except ImportError:
21 except ImportError:
300 except ply.lex.LexError:
337 except OSError:
367 except OSError:
371 except OSError:
375 except OSError:
410 except OSError:
414 except OSError:
418 except OSError:
[all …]
/external/ltp/testcases/kernel/power_management/lib/
Dpm_sched_mc.py33 except OSError, e:
47 except IOError, e:
64 except Exception, details:
76 except Exception:
96 except Exception:
126 except Exception:
144 except Exception:
170 except Exception, details:
183 except IOError, e:
200 except Exception, details:
[all …]
/external/scapy/scapy/
Dmain.py48 except OSError:
77 except IOError as e:
81 except Exception as e:
134 except Exception:
163 except ImportError:
203 except:
223 except:
243 except OSError:
261 except IOError:
264 except IOError:
[all …]
/external/python/cpython2/Lib/
Dasyncore.py65 except NameError:
71 except (ValueError, OverflowError, NameError):
84 except _reraised_exceptions:
86 except:
92 except _reraised_exceptions:
94 except:
100 except _reraised_exceptions:
102 except:
115 except socket.error, e:
120 except _reraised_exceptions:
[all …]

12345678910>>...438