Home
last modified time | relevance | path

Searched refs:exc (Results 1 – 25 of 91) sorted by relevance

1234

/device/google/contexthub/firmware/lib/libm/
Dwf_pow.c34 struct exception exc;
41 exc.type = DOMAIN;
42 exc.name = "powf";
43 exc.err = 0;
44 exc.arg1 = (double)x;
45 exc.arg2 = (double)y;
46 exc.retval = 1.0;
48 _LIB_VERSION == _POSIX_) exc.retval = 1.0;
49 else if (!matherr(&exc)) {
52 if (exc.err != 0)
[all …]
Dwf_exp.c44 struct exception exc;
56 exc.type = OVERFLOW;
57 exc.name = "expf";
58 exc.err = 0;
59 exc.arg1 = exc.arg2 = (double)x;
61 exc.retval = HUGE;
63 exc.retval = HUGE_VAL;
66 else if (!matherr(&exc)) {
69 if (exc.err != 0)
70 errno = exc.err;
[all …]
Dwf_fmod.c34 struct exception exc;
39 exc.type = DOMAIN;
40 exc.name = "fmodf";
41 exc.err = 0;
42 exc.arg1 = (double)x;
43 exc.arg2 = (double)y;
45 exc.retval = x;
47 exc.retval = 0.0/0.0;
50 else if (!matherr(&exc)) {
53 if (exc.err != 0)
[all …]
Dwf_asin.c36 struct exception exc;
41 exc.type = DOMAIN;
42 exc.name = "asinf";
43 exc.err = 0;
44 exc.arg1 = exc.arg2 = (double)x;
45 exc.retval = nan("");
48 else if (!matherr(&exc)) {
51 if (exc.err != 0)
52 errno = exc.err;
53 return (float)exc.retval;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_pep352.py73 exc = getattr(__builtin__, exc_name)
81 self.assertTrue(issubclass(exc, superclasses[-1][1]),
82 "%s is not a subclass of %s" % (exc.__name__,
85 self.verify_instance_interface(exc())
90 last_exc = exc
108 exc = Exception(arg)
109 results = ([len(exc.args), 1], [exc.args[0], arg], [exc.message, arg],
110 [str(exc), str(arg)], [unicode(exc), unicode(arg)],
111 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
112 [exc[0], arg])
[all …]
Dtest_codeccallbacks.py10 def handle(self, exc): argument
14 realpos = len(exc.object) + realpos
17 if realpos <= exc.start:
18 self.pos = len(exc.object)
83 def xmlcharnamereplace(exc): argument
84 if not isinstance(exc, UnicodeEncodeError):
85 raise TypeError("don't know how to handle %r" % exc)
87 for c in exc.object[exc.start:exc.end]:
92 return (u"".join(l), exc.end)
114 def uninamereplace(exc): argument
[all …]
Dtest_multibytecodec_support.py73 def xmlcharnamereplace(exc): argument
74 if not isinstance(exc, UnicodeEncodeError):
75 raise TypeError("don't know how to handle %r" % exc)
77 for c in exc.object[exc.start:exc.end]:
82 return (u"".join(l), exc.end)
95 def myreplace(exc): argument
96 return (ret, exc.end)
104 def myreplace(exc): argument
105 return (u'x', long(exc.end))
110 def myreplace(exc): argument
[all …]
Dtest_exceptions.py26 def raise_catch(self, exc, excname): argument
28 raise exc, "spam"
29 except exc, err:
32 raise exc("spam")
33 except exc, err:
36 self.assertEqual(exc.__name__, excname)
164 exc, err, tb = sys.exc_info()
176 exc, err, tb = sys.exc_info()
280 for exc, args, expected in exceptionList:
282 raise exc(*args)
[all …]
Dtest_sys.py62 except ValueError, exc:
76 def clear_check(exc): argument
79 self.assertTrue(value is exc)
93 except ValueError, exc:
94 clear_check(exc)
103 except ValueError, exc:
109 self.assertTrue(value1 is exc)
114 clear_check(exc)
122 except SystemExit, exc:
123 self.assertEqual(exc.code, 0)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcontextlib.py37 except StopIteration, exc:
41 return exc is not value
107 exc = (None, None, None)
116 exc = sys.exc_info()
121 if exit(*exc):
122 exc = (None, None, None)
124 exc = sys.exc_info()
125 if exc != (None, None, None):
129 raise exc[0], exc[1], exc[2]
Drunpy.py126 except ImportError as exc:
127 if main_name in str(exc):
154 except ImportError as exc:
155 msg = "%s: %s" % (sys.executable, str(exc))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_raise.py41 exc = results["exc"].clone()
42 if exc.type == token.STRING:
53 if is_tuple(exc):
54 while is_tuple(exc):
57 exc = exc.children[1].children[0].clone()
58 exc.prefix = u" "
62 new = pytree.Node(syms.raise_stmt, [Name(u"raise"), exc])
77 e = exc
82 e = Call(exc, args)
89 [Name(u"raise"), Call(exc, args)],
Dfix_throw.py29 exc = results["exc"].clone()
30 if exc.type is token.STRING:
52 e = Call(exc, args)
56 throw_args.replace(Call(exc, args))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dcodecs.c442 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
444 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type()
461 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
463 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
464 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
472 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
475 if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
476 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
479 else if (PyObject_IsInstance(exc, PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
480 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
[all …]
Derrors.c85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
119 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches()
130 return err == exc; in PyErr_GivenExceptionMatches()
135 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
137 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dcodecs.c442 static void wrong_exception_type(PyObject *exc) in wrong_exception_type() argument
444 PyObject *type = PyObject_GetAttrString(exc, "__class__"); in wrong_exception_type()
461 PyObject *PyCodec_StrictErrors(PyObject *exc) in PyCodec_StrictErrors() argument
463 if (PyExceptionInstance_Check(exc)) in PyCodec_StrictErrors()
464 PyErr_SetObject(PyExceptionInstance_Class(exc), exc); in PyCodec_StrictErrors()
472 PyObject *PyCodec_IgnoreErrors(PyObject *exc) in PyCodec_IgnoreErrors() argument
475 if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) { in PyCodec_IgnoreErrors()
476 if (PyUnicodeEncodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
479 else if (PyObject_IsInstance(exc, PyExc_UnicodeDecodeError)) { in PyCodec_IgnoreErrors()
480 if (PyUnicodeDecodeError_GetEnd(exc, &end)) in PyCodec_IgnoreErrors()
[all …]
Derrors.c85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
117 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches()
128 return err == exc; in PyErr_GivenExceptionMatches()
133 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
135 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dcodecs.h150 PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc);
153 PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc);
156 PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc);
159 PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
162 PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dcodecs.h150 PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc);
153 PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc);
156 PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc);
159 PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
162 PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dspawn.py70 except OSError, exc:
73 "command '%s' failed: %s" % (cmd[0], exc[-1])
89 except OSError, exc:
92 "command '%s' failed: %s" % (cmd[0], exc[-1])
123 except OSError, exc:
125 if exc.errno == errno.EINTR:
128 "command '%s' failed: %s" % (cmd[0], exc[-1])
Ddir_util.py73 except OSError, exc:
74 if not (exc.errno == errno.EEXIST and os.path.isdir(head)):
76 "could not create '%s': %s" % (head, exc.args[-1]))
200 except (IOError, OSError), exc:
202 exc, "error removing %s: " % directory))
Dutil.py290 def grok_environment_error (exc, prefix="error: "): argument
299 if hasattr(exc, 'filename') and hasattr(exc, 'strerror'):
300 if exc.filename:
301 error = prefix + "%s: %s" % (exc.filename, exc.strerror)
305 error = prefix + "%s" % exc.strerror
307 error = prefix + str(exc[-1])
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dexceptions.c1356 PyUnicodeEncodeError_GetEncoding(PyObject *exc) in PyUnicodeEncodeError_GetEncoding() argument
1358 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeEncodeError_GetEncoding()
1362 PyUnicodeDecodeError_GetEncoding(PyObject *exc) in PyUnicodeDecodeError_GetEncoding() argument
1364 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeDecodeError_GetEncoding()
1368 PyUnicodeEncodeError_GetObject(PyObject *exc) in PyUnicodeEncodeError_GetObject() argument
1370 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeEncodeError_GetObject()
1374 PyUnicodeDecodeError_GetObject(PyObject *exc) in PyUnicodeDecodeError_GetObject() argument
1376 return get_string(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeDecodeError_GetObject()
1380 PyUnicodeTranslateError_GetObject(PyObject *exc) in PyUnicodeTranslateError_GetObject() argument
1382 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeTranslateError_GetObject()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dexceptions.c1352 PyUnicodeEncodeError_GetEncoding(PyObject *exc) in PyUnicodeEncodeError_GetEncoding() argument
1354 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeEncodeError_GetEncoding()
1358 PyUnicodeDecodeError_GetEncoding(PyObject *exc) in PyUnicodeDecodeError_GetEncoding() argument
1360 return get_string(((PyUnicodeErrorObject *)exc)->encoding, "encoding"); in PyUnicodeDecodeError_GetEncoding()
1364 PyUnicodeEncodeError_GetObject(PyObject *exc) in PyUnicodeEncodeError_GetObject() argument
1366 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeEncodeError_GetObject()
1370 PyUnicodeDecodeError_GetObject(PyObject *exc) in PyUnicodeDecodeError_GetObject() argument
1372 return get_string(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeDecodeError_GetObject()
1376 PyUnicodeTranslateError_GetObject(PyObject *exc) in PyUnicodeTranslateError_GetObject() argument
1378 return get_unicode(((PyUnicodeErrorObject *)exc)->object, "object"); in PyUnicodeTranslateError_GetObject()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dcheckextensions_win32.py119 for exc in exclude:
120 if exc in module.sourceFiles:
121 modules.sourceFiles.remove(exc)

1234