Home
last modified time | relevance | path

Searched refs:py_result (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/python_bindings/tutorial/
H A Dlesson_09_update_definitions.py156 py_result[rr][xx] = py_result[rr][xx] * py_result[rr][xx]
192 py_result[xx] = 0
255 py_result[1][xx[0]] = py_result[0][xx[0]]
256 py_result[1][xx[1]] = py_result[0][xx[1]]
257 py_result[1][xx[2]] = py_result[0][xx[2]]
258 py_result[1][xx[3]] = py_result[0][xx[3]]
264 py_result[yy][1] = py_result[yy][0] + 2
353 py_result[xx] += 1
391 py_result[xx] = xx
533 py_result[xx] = xx + 10
[all …]
/dports/security/sudo/sudo-1.9.8p2/plugins/python/
H A Dsudo_python_module.c127 debug_return_ptr(py_result); in python_sudo_log()
139 *py_result = NULL, in python_sudo_options_as_dict() local
152 py_result = PyDict_New(); in python_sudo_options_as_dict()
153 if (py_result == NULL) in python_sudo_options_as_dict()
192 Py_CLEAR(py_result); in python_sudo_options_as_dict()
207 *py_result = NULL; in python_sudo_options_from_dict() local
214 if (py_result == NULL) in python_sudo_options_from_dict()
232 Py_CLEAR(py_result); in python_sudo_options_from_dict()
285 if (py_result && (py_result == Py_None || PyLong_AsLong(py_result) >= 0)) in _call_conversation_callback()
288 Py_CLEAR(py_result); in _call_conversation_callback()
[all …]
H A Dpython_plugin_policy.c109 PyObject *py_result = NULL; in python_plugin_policy_check() local
120 if (py_result == NULL) in python_plugin_policy_check()
127 if (PyTuple_Check(py_result)) in python_plugin_policy_check()
139 py_rc = py_result; in python_plugin_policy_check()
165 Py_XDECREF(py_result); in python_plugin_policy_check()
232 PyObject *py_pwd = NULL, *py_user_env = NULL, *py_result = NULL; in python_plugin_policy_init_session() local
245 if (py_result == NULL) in python_plugin_policy_init_session()
249 if (PyTuple_Check(py_result)) { in python_plugin_policy_init_session()
250 if (!PyArg_ParseTuple(py_result, "O!|O!:python_plugin.init_session", in python_plugin_policy_init_session()
256 py_rc = py_result; in python_plugin_policy_init_session()
[all …]
H A Dpython_plugin_common.c209 if (py_result != NULL) { in python_plugin_handle_plugin_error_exception()
210 Py_CLEAR(*py_result); in python_plugin_handle_plugin_error_exception()
211 *py_result = PyLong_FromLong(rc); in python_plugin_handle_plugin_error_exception()
617 debug_return_ptr(py_result); in python_plugin_api_call()
621 python_plugin_rc_to_int(PyObject *py_result) in python_plugin_rc_to_int() argument
624 if (py_result == NULL) in python_plugin_rc_to_int()
627 if (py_result == Py_None) in python_plugin_rc_to_int()
630 debug_return_int((int)PyLong_AsLong(py_result)); in python_plugin_rc_to_int()
639 int rc = python_plugin_rc_to_int(py_result); in python_plugin_api_rc_call()
640 Py_XDECREF(py_result); in python_plugin_api_rc_call()
[all …]
H A Dpython_loghandler.c167 *py_logger = NULL, *py_result = NULL; in sudo_module_set_default_loghandler() local
181 py_result = PyObject_CallMethod(py_logger, "addHandler", "O", py_loghandler); in sudo_module_set_default_loghandler()
184 Py_CLEAR(py_result); in sudo_module_set_default_loghandler()
/dports/devel/nextpnr/nextpnr-48cd407/3rdparty/python-console/
H A DInterpreter.cpp40 PyObject* py_result; in test() local
44 if ( py_result == 0 ) in test()
50 dum = PyEval_EvalCode (py_result, glb, loc); in test()
52 Py_XDECREF (py_result); in test()
75 PyObject* py_result; in interpret() local
79 if ( py_result == 0 ) in interpret()
92 dum = PyEval_EvalCode (py_result, glb, loc); in interpret()
94 Py_XDECREF (py_result); in interpret()
117 PyObject* py_result; in suggest() local
120 dum = PyEval_EvalCode (py_result, glb, loc); in suggest()
[all …]
/dports/math/py-pyodeint/pyodeint-0.10.4/external/anyode/include/anyode/
H A Danyode_numpy.hpp81 if (py_result == nullptr) { in get_dx0()
84 double res = PyFloat_AsDouble(py_result); in get_dx0()
85 Py_DECREF(py_result); in get_dx0()
105 if (py_result == nullptr) { in get_dx_max()
109 Py_DECREF(py_result); in get_dx_max()
116 if (py_result == nullptr){ in handle_status_()
118 } else if (py_result == Py_None){ in handle_status_()
119 Py_DECREF(py_result); in handle_status_()
122 long result = PyInt_AsLong(py_result); in handle_status_()
123 Py_DECREF(py_result); in handle_status_()
[all …]
/dports/math/py-pyodesys/pyodesys-0.14.1/pyodesys/native/sources/anyode/
H A Danyode_numpy.hpp81 if (py_result == nullptr) { in get_dx0()
84 double res = PyFloat_AsDouble(py_result); in get_dx0()
85 Py_DECREF(py_result); in get_dx0()
105 if (py_result == nullptr) { in get_dx_max()
109 Py_DECREF(py_result); in get_dx_max()
116 if (py_result == nullptr){ in handle_status_()
118 } else if (py_result == Py_None){ in handle_status_()
119 Py_DECREF(py_result); in handle_status_()
122 long result = PyInt_AsLong(py_result); in handle_status_()
123 Py_DECREF(py_result); in handle_status_()
[all …]
/dports/math/py-pygslodeiv2/pygslodeiv2-0.9.4/external/anyode/include/anyode/
H A Danyode_numpy.hpp81 if (py_result == nullptr) { in get_dx0()
84 double res = PyFloat_AsDouble(py_result); in get_dx0()
85 Py_DECREF(py_result); in get_dx0()
105 if (py_result == nullptr) { in get_dx_max()
109 Py_DECREF(py_result); in get_dx_max()
116 if (py_result == nullptr){ in handle_status_()
118 } else if (py_result == Py_None){ in handle_status_()
119 Py_DECREF(py_result); in handle_status_()
122 long result = PyInt_AsLong(py_result); in handle_status_()
123 Py_DECREF(py_result); in handle_status_()
[all …]
/dports/science/fastjet/fastjet-3.3.4/pyinterface/
H A DFastJetPythonExtensions.hh153 PyObject *py_result = PyObject_CallObject(_py_class_or_function, args); in pass() local
165 if (py_result == NULL) in pass()
168 if (!PyBool_Check(py_result)) in pass()
170 int result = PyObject_IsTrue(py_result); in pass()
173 Py_XDECREF(py_result); ///??? in pass()
240 PyObject *py_result = PyObject_CallMethod(_py_class, (char *) "recombine", in recombine() local
243 if (py_result == NULL) in recombine()
255 Py_XDECREF(py_result); ///needed??? in recombine()
268 PyObject *py_result = PyObject_CallMethod(_py_class, (char *) "preprocess", in preprocess() local
271 if (py_result == NULL) in preprocess()
[all …]
/dports/devel/nextpnr/nextpnr-48cd407/3rdparty/python-console/modified/
H A Dpyinterpreter.cc52 PyObject *py_result; in pyinterpreter_execute() local
55 py_result = Py_CompileString(command.c_str(), "<stdin>", Py_single_input); in pyinterpreter_execute()
56 if (py_result == 0) { in pyinterpreter_execute()
66 dum = PyEval_EvalCode(py_result, glb, loc); in pyinterpreter_execute()
68 Py_XDECREF(py_result); in pyinterpreter_execute()
94 PyObject *py_result; in pyinterpreter_suggest() local
96 py_result = Py_CompileString(command.c_str(), "<stdin>", Py_single_input); in pyinterpreter_suggest()
97 if (py_result == nullptr) in pyinterpreter_suggest()
99 dum = PyEval_EvalCode(py_result, glb, loc); in pyinterpreter_suggest()
103 Py_XDECREF(py_result); in pyinterpreter_suggest()
/dports/net/samba412/samba-4.12.15/source4/param/
H A Dprovision.c107 PyObject *provision_fn = NULL, *py_result = NULL;
267 if (py_result == NULL) {
272 py_domaindn = PyObject_GetAttrString(py_result, "domaindn");
276 py_lp_ctx = PyObject_GetAttrString(py_result, "lp");
297 Py_CLEAR(py_result);
335 PyObject *provision_fn = NULL, *py_result = NULL;
460 if (py_result == NULL) {
482 Py_CLEAR(py_result);
549 if (py_result == NULL) {
555 py_ldb = PyObject_GetAttrString(py_result, "ldb");
[all …]
/dports/graphics/blender/blender-2.91.0/source/blender/python/intern/
H A Dbpy_interface_run.c86 PyObject *py_dict = NULL, *py_result = NULL; in python_script_exec() local
125 py_result = PyEval_EvalCode(text->compiled, py_dict, py_dict); in python_script_exec()
156 py_result = PyRun_String(pystring, Py_file_input, py_dict, py_dict); in python_script_exec()
159 py_result = PyRun_File(fp, fn, Py_file_input, py_dict, py_dict); in python_script_exec()
166 py_result = NULL; in python_script_exec()
170 if (!py_result) { in python_script_exec()
183 Py_DECREF(py_result); in python_script_exec()
204 return (py_result != NULL); in python_script_exec()
/dports/devel/py-gevent/gevent-21.8.0/src/gevent/_generated_include/
H A DBytesEquals_impl_e6e00372871fe30fd34336b41036f3e015446a55.h37 PyObject* py_result = PyObject_RichCompare(s1, s2, equals); in __Pyx_PyBytes_Equals()
38 if (!py_result) in __Pyx_PyBytes_Equals()
40 result = __Pyx_PyObject_IsTrue(py_result); in __Pyx_PyBytes_Equals()
41 Py_DECREF(py_result); in __Pyx_PyBytes_Equals()
H A DUnicodeEquals_impl_59ff4e630bc7eaefcae1e033587e8b97b0bf7eb8.h79 PyObject* py_result = PyObject_RichCompare(s1, s2, equals); in __Pyx_PyUnicode_Equals()
83 if (!py_result) in __Pyx_PyUnicode_Equals()
85 result = __Pyx_PyObject_IsTrue(py_result); in __Pyx_PyUnicode_Equals()
86 Py_DECREF(py_result); in __Pyx_PyUnicode_Equals()
/dports/www/py-libsass/libsass-0.21.0/
H A D_sass.c373 PyObject* py_result = NULL; in _call_py_f() local
384 sass_result = _to_sass_value(py_result); in _call_py_f()
391 Py_XDECREF(py_result); in _call_py_f()
420 PyObject* py_result = NULL; in _call_py_importer_f() local
432 if (!py_result) goto done; in _call_py_importer_f()
435 if (py_result == Py_None) { in _call_py_importer_f()
436 Py_XDECREF(py_result); in _call_py_importer_f()
442 sass_imports = sass_make_import_list(PyTuple_Size(py_result)); in _call_py_importer_f()
443 for (i = 0; i < PyTuple_Size(py_result); i += 1) { in _call_py_importer_f()
447 PyObject* tup = PyTuple_GetItem(py_result, i); in _call_py_importer_f()
[all …]
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/sql/gis/
H A Dsimplify.cc73 Cartesian_polygon *py_result = new Cartesian_polygon(); in eval() local
74 std::unique_ptr<Geometry> result(py_result); in eval()
75 bg::simplify(g, *py_result, m_max_distance); in eval()
76 if (py_result->exterior_ring().size() < 4) in eval()
/dports/math/py-cypari2/cypari2-2.1.2/venv/lib/python3.7/site-packages/Cython/Compiler/
H A DExprNodes.py251 if py_result:
523 def py_result(self): member in ExprNode
2767 self.py_result(),
2779 self.py_result(),
2826 self.py_result()))
6692 item.py_result(),
6701 item.py_result(),
7739 rhs.py_result(),
8554 item.py_result(),
8592 item.py_result()))
[all …]
/dports/lang/cython/Cython-0.29.24/Cython/Compiler/
H A DExprNodes.py251 if py_result:
523 def py_result(self): member in ExprNode
2773 self.py_result(),
2785 self.py_result(),
2832 self.py_result()))
6705 item.py_result(),
6714 item.py_result(),
7758 rhs.py_result(),
8571 item.py_result(),
8609 item.py_result()))
[all …]
/dports/lang/cython/Cython-0.29.24/build/lib.dragonfly-6.3-DEVELOPMENT-x86_64-3.8/Cython/Compiler/
H A DExprNodes.py251 if py_result:
523 def py_result(self): member in ExprNode
2773 self.py_result(),
2785 self.py_result(),
2832 self.py_result()))
6705 item.py_result(),
6714 item.py_result(),
7758 rhs.py_result(),
8571 item.py_result(),
8609 item.py_result()))
[all …]
/dports/lang/cython/stage/usr/local/lib/python3.8/site-packages/Cython/Compiler/
H A DExprNodes.py251 if py_result:
523 def py_result(self): member in ExprNode
2773 self.py_result(),
2785 self.py_result(),
2832 self.py_result()))
6705 item.py_result(),
6714 item.py_result(),
7758 rhs.py_result(),
8571 item.py_result(),
8609 item.py_result()))
[all …]
/dports/devel/py-pygit2/pygit2-1.7.1/src/
H A Drepository.c591 PyObject *py_result = NULL; in Repository_merge_analysis() local
616 py_result = Error_set(err); in Repository_merge_analysis()
631 return py_result; in Repository_merge_analysis()
960 PyObject *py_result = NULL; in Repository_create_commit() local
1031 return py_result; in Repository_create_commit()
1130 if (py_result == NULL) in Repository_listall_references_impl()
1137 Py_CLEAR(py_result); in Repository_listall_references_impl()
1145 return py_result; in Repository_listall_references_impl()
2014 if (py_result == NULL) in Repository_list_worktrees()
2021 Py_CLEAR(py_result); in Repository_list_worktrees()
[all …]
/dports/math/py-mathics/Mathics3-2.2.0/test/
H A Dtest_compile.py77 py_result = fn(*args)
80 if isinstance(py_result, mpmath.mpc):
82 if isinstance(py_result, mpmath.mpf):
83 py_result = float(py_result)
84 return py_result
93 py_result = self._py_evaluate(fn, x)
95 self.assertNumEqual(c_result, py_result)
105 py_result = self._py_evaluate(fn, x, y)
107 self.assertNumEqual(py_result, c_result, check_type)
/dports/databases/ldb15/ldb-1.5.6/
H A Dpyldb.c3818 Py_DECREF(py_result);
3844 Py_DECREF(py_result);
3870 Py_DECREF(py_result);
3893 Py_DECREF(py_result);
3924 Py_DECREF(py_result);
3932 PyObject *py_result;
3945 PyObject *py_result;
3958 PyObject *py_result;
3967 Py_DECREF(py_result);
3975 PyObject *py_result;
[all …]
/dports/math/py-pygsl/pygsl-2.3.0/src/
H A Dmultiminmodule.c187 PyObject* py_result; in multimin_multimin_x() local
197 py_result=PyTuple_New(result->size); in multimin_multimin_x()
198 if (py_result==NULL) { in multimin_multimin_x()
202 PyTuple_SetItem(py_result,i,PyFloat_FromDouble(gsl_vector_get(result,i))); in multimin_multimin_x()
203 return py_result; in multimin_multimin_x()

12345678910>>...16