Home
last modified time | relevance | path

Searched refs:py_str (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/dports/devel/py-rapidfuzz/rapidfuzz-1.8.0/src/
H A Dcpp_common.hpp119 if (PyBytes_Check(py_str)) { in is_valid_string()
122 else if (PyUnicode_Check(py_str)) { in is_valid_string()
126 if (PyUnicode_READY(py_str)) { in is_valid_string()
148 if (PyBytes_Check(py_str)) { in validate_string()
151 else if (PyUnicode_Check(py_str)) { in validate_string()
155 if (PyUnicode_READY(py_str)) { in validate_string()
177 if (PyBytes_Check(py_str)) { in convert_string()
181 PyBytes_AS_STRING(py_str), in convert_string()
186 switch(PyUnicode_KIND(py_str)) { in convert_string()
201 PyUnicode_DATA(py_str), in convert_string()
[all …]
/dports/devel/libsigrokdecode/libsigrokdecode-0.5.3/
H A Dexception.c28 PyObject *py_str, *py_bytes; in py_stringify() local
36 py_str = PyObject_Str(py_obj); in py_stringify()
37 if (!py_str || !PyUnicode_Check(py_str)) in py_stringify()
40 py_bytes = PyUnicode_AsUTF8String(py_str); in py_stringify()
48 Py_XDECREF(py_str); in py_stringify()
59 PyObject *py_str, *py_bytes; in py_get_string_attr() local
67 py_str = PyObject_GetAttrString(py_obj, attr); in py_get_string_attr()
68 if (!py_str || !PyUnicode_Check(py_str)) in py_get_string_attr()
71 py_bytes = PyUnicode_AsUTF8String(py_str); in py_get_string_attr()
79 Py_XDECREF(py_str); in py_get_string_attr()
H A Dutil.c72 PyObject *py_str; in py_attr_as_str() local
83 if (!(py_str = PyObject_GetAttrString(py_obj, attr))) { in py_attr_as_str()
88 ret = py_str_as_str(py_str, outstr); in py_attr_as_str()
89 Py_DECREF(py_str); in py_attr_as_str()
355 SRD_PRIV int py_str_as_str(PyObject *py_str, char **outstr) in py_str_as_str() argument
363 if (!PyUnicode_Check(py_str)) { in py_str_as_str()
369 py_bytes = PyUnicode_AsUTF8String(py_str); in py_str_as_str()
/dports/devel/py-pygit2/pygit2-1.7.1/src/
H A Dutils.c76 PyObject *py_str = NULL; in pgit_borrow_encoding() local
86 py_str = PyUnicode_AsEncodedString( in pgit_borrow_encoding()
93 if (py_str == NULL) in pgit_borrow_encoding()
96 py_str = py_value; in pgit_borrow_encoding()
104 char *c_str = PyBytes_AsString(py_str); in pgit_borrow_encoding()
106 Py_DECREF(py_str); in pgit_borrow_encoding()
111 *tvalue = py_str; in pgit_borrow_encoding()
/dports/math/gnumeric/gnumeric-1.12.50/plugins/python-loader/
H A Dgnm-py-interpreter.c171 PyObject *py_str; in gnm_py_interpreter_run_string() local
232 py_str = PyObject_CallMethod (stdout_obj, "getvalue", NULL); in gnm_py_interpreter_run_string()
233 if (py_str && PyUnicode_Check (py_str)) in gnm_py_interpreter_run_string()
234 *opt_stdout = g_strdup (PyUnicode_AsUTF8 (py_str)); in gnm_py_interpreter_run_string()
237 if (py_str == NULL) in gnm_py_interpreter_run_string()
243 py_str = PyObject_CallMethod (stderr_obj, "getvalue", NULL); in gnm_py_interpreter_run_string()
244 if (py_str && PyUnicode_Check (py_str)) in gnm_py_interpreter_run_string()
245 *opt_stderr = g_strdup (PyUnicode_AsUTF8 (py_str)); in gnm_py_interpreter_run_string()
248 if (py_str == NULL) in gnm_py_interpreter_run_string()
/dports/science/fastjet/fastjet-3.3.4/pyinterface/
H A DFastJetPythonExtensions.hh53 inline std::string cpp_string_from_py_str(PyObject *py_str) { in cpp_string_from_py_str() argument
56 char_result = PyUnicode_AsUTF8(py_str); in cpp_string_from_py_str()
58 char_result = PyString_AsString(py_str); in cpp_string_from_py_str()
67 PyObject* py_str = PyObject_Str(py_obj); in cpp_string_from_str_py_obj() local
68 std::string cpp_str = cpp_string_from_py_str(py_str); in cpp_string_from_str_py_obj()
69 Py_XDECREF(py_str); in cpp_string_from_str_py_obj()
77 PyObject* py_str = PyObject_GetAttrString(py_obj, "__name__"); in cpp_string_from_name_py_obj() local
78 std::string cpp_str = cpp_string_from_py_str(py_str); in cpp_string_from_name_py_obj()
79 Py_XDECREF(py_str); in cpp_string_from_name_py_obj()
/dports/misc/tvm/incubator-tvm-0.6.1/nnvm/python/nnvm/
H A D_base.py41 py_str = lambda x: x.decode('utf-8') function
45 py_str = lambda x: x function
91 raise NNVMError(py_str(_LIB.NNGetLastError()))
202 key = py_str(arg_names[i])
206 type_info = py_str(arg_types[i])
209 ret += '\n ' + py_str(arg_descs[i])
/dports/misc/py-tvm/incubator-tvm-0.6.1/nnvm/python/nnvm/
H A D_base.py41 py_str = lambda x: x.decode('utf-8') function
45 py_str = lambda x: x function
91 raise NNVMError(py_str(_LIB.NNGetLastError()))
202 key = py_str(arg_names[i])
206 type_info = py_str(arg_types[i])
209 ret += '\n ' + py_str(arg_descs[i])
/dports/misc/mxnet/incubator-mxnet-1.9.0/python/mxnet/symbol/
H A Dregister.py27 from ..base import mx_uint, check_call, _LIB, py_str
102 arg_names = [py_str(arg_names[i]) for i in range(narg)]
103 arg_types = [py_str(arg_types[i]) for i in range(narg)]
104 key_var_num_args = py_str(key_var_num_args.value)
105 ret_type = py_str(ret_type.value) if ret_type.value is not None else ''
107 py_str(desc.value),
110 [py_str(arg_descs[i]) for i in range(narg)],
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/python/mxnet/symbol/
H A Dregister.py27 from ..base import mx_uint, check_call, _LIB, py_str
102 arg_names = [py_str(arg_names[i]) for i in range(narg)]
103 arg_types = [py_str(arg_types[i]) for i in range(narg)]
104 key_var_num_args = py_str(key_var_num_args.value)
105 ret_type = py_str(ret_type.value) if ret_type.value is not None else ''
107 py_str(desc.value),
110 [py_str(arg_descs[i]) for i in range(narg)],
/dports/misc/mxnet/incubator-mxnet-1.9.0/python/mxnet/ndarray/
H A Dregister.py26 from ..base import mx_uint, check_call, _LIB, py_str, _init_op_module, _Null, _is_np_op, _output_is…
135 arg_names = [py_str(arg_names[i]) for i in range(narg)]
136 arg_types = [py_str(arg_types[i]) for i in range(narg)]
137 key_var_num_args = py_str(key_var_num_args.value)
138 ret_type = py_str(ret_type.value) if ret_type.value is not None else ''
140 py_str(desc.value),
143 [py_str(arg_descs[i]) for i in range(narg)],
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/python/mxnet/ndarray/
H A Dregister.py26 from ..base import mx_uint, check_call, _LIB, py_str, _init_op_module, _Null, _is_np_op, _output_is…
135 arg_names = [py_str(arg_names[i]) for i in range(narg)]
136 arg_types = [py_str(arg_types[i]) for i in range(narg)]
137 key_var_num_args = py_str(key_var_num_args.value)
138 ret_type = py_str(ret_type.value) if ret_type.value is not None else ''
140 py_str(desc.value),
143 [py_str(arg_descs[i]) for i in range(narg)],
/dports/devel/avr-gdb/gdb-7.3.1/gdb/python/
H A Dpy-prettyprint.c312 PyObject *py_str = NULL; in print_string_repr() local
315 py_str = pretty_print_one_value (printer, &replacement); in print_string_repr()
316 if (py_str) in print_string_repr()
320 if (py_str == Py_None) in print_string_repr()
322 else if (gdbpy_is_lazy_string (py_str)) in print_string_repr()
331 gdbpy_extract_lazy_string (py_str, &addr, &type, in print_string_repr()
342 string = python_string_to_target_python_string (py_str); in print_string_repr()
761 PyObject *py_str = NULL; in apply_varobj_pretty_printer() local
764 py_str = pretty_print_one_value (printer_obj, replacement); in apply_varobj_pretty_printer()
766 if (*replacement == NULL && py_str == NULL) in apply_varobj_pretty_printer()
[all …]
/dports/devel/gdb761/gdb-7.6.1/gdb/python/
H A Dpy-prettyprint.c313 PyObject *py_str = NULL; in print_string_repr() local
316 py_str = pretty_print_one_value (printer, &replacement); in print_string_repr()
317 if (py_str) in print_string_repr()
321 if (py_str == Py_None) in print_string_repr()
323 else if (gdbpy_is_lazy_string (py_str)) in print_string_repr()
332 gdbpy_extract_lazy_string (py_str, &addr, &type, in print_string_repr()
343 string = python_string_to_target_python_string (py_str); in print_string_repr()
774 PyObject *py_str = NULL; in apply_varobj_pretty_printer() local
777 py_str = pretty_print_one_value (printer_obj, replacement); in apply_varobj_pretty_printer()
779 if (*replacement == NULL && py_str == NULL) in apply_varobj_pretty_printer()
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/contrib/
H A Dcc.py23 from .._ffi.base import py_str
100 msg += py_str(out)
102 return py_str(out)
210 msg += py_str(out)
243 msg += py_str(out)
H A Dtar.py25 from .._ffi.base import py_str
57 msg += py_str(out)
85 msg += py_str(out)
/dports/misc/tvm/incubator-tvm-0.6.1/python/tvm/contrib/
H A Dbinutil.py22 from .._ffi.base import py_str
57 msg += py_str(size_output)
187 msg += py_str(out)
228 msg += py_str(out)
268 msg += py_str(nm_output)
H A Dtar.py25 from .._ffi.base import py_str
58 msg += py_str(out)
87 msg += py_str(out)
/dports/misc/py-tvm/incubator-tvm-0.6.1/python/tvm/contrib/
H A Dbinutil.py22 from .._ffi.base import py_str
57 msg += py_str(size_output)
187 msg += py_str(out)
228 msg += py_str(out)
268 msg += py_str(nm_output)
H A Dtar.py25 from .._ffi.base import py_str
58 msg += py_str(out)
87 msg += py_str(out)
/dports/audio/ario/ario-1.6/bindings/python/
H A Doverride_common.c226 PyObject *py_str; in _helper_unwrap_string_pylist() local
229 py_str = PyList_GetItem (py_list, i); in _helper_unwrap_string_pylist()
230 str = PyString_AsString (py_str); in _helper_unwrap_string_pylist()
249 PyObject *py_str; in _helper_unwrap_string_pyslist() local
252 py_str = PyList_GetItem (py_list, i); in _helper_unwrap_string_pyslist()
253 str = PyString_AsString (py_str); in _helper_unwrap_string_pyslist()
/dports/misc/mxnet/incubator-mxnet-1.9.0/python/mxnet/
H A Dtorch.py25 from .base import c_array, c_str_array, c_handle_array, py_str, build_param_doc as _build_param_doc
70 func_name = py_str(name.value)
75 [py_str(arg_names[i]) for i in range(narg)],
76 [py_str(arg_types[i]) for i in range(narg)],
77 [py_str(arg_descs[i]) for i in range(narg)])
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/python/mxnet/
H A Dtorch.py25 from .base import c_array, c_str_array, c_handle_array, py_str, build_param_doc as _build_param_doc
70 func_name = py_str(name.value)
75 [py_str(arg_names[i]) for i in range(narg)],
76 [py_str(arg_types[i]) for i in range(narg)],
77 [py_str(arg_descs[i]) for i in range(narg)])
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/modules/python/
H A Dpython-http-header.c59 PyObject *py_str; in _py_append_pylist_to_list() local
76 py_str = PyList_GetItem(py_list, i); // Borrowed reference in _py_append_pylist_to_list()
77 if (!_py_is_string(py_str)) in _py_append_pylist_to_list()
83 if (!(str = _py_get_string_as_string(py_str))) in _py_append_pylist_to_list()
101 PyObject *py_str = _py_string_from_string((gchar *) data, -1); in _py_append_str_to_pylist() local
102 if (!py_str) in _py_append_str_to_pylist()
115 if (PyList_Append(py_list, py_str) != 0) in _py_append_str_to_pylist()
126 Py_XDECREF(py_str); // Even if append() succeeds, it doesn't steal the reference to py_str. in _py_append_str_to_pylist()
/dports/devel/gdb/gdb-11.1/gdb/python/
H A Dpy-prettyprint.c286 gdbpy_ref<> py_str = pretty_print_one_value (printer, &replacement); in print_string_repr() local
287 if (py_str != NULL) in print_string_repr()
289 if (py_str == Py_None) in print_string_repr()
291 else if (gdbpy_is_lazy_string (py_str.get ())) in print_string_repr()
299 gdbpy_extract_lazy_string (py_str.get (), &addr, &type, in print_string_repr()
309 = python_string_to_target_python_string (py_str.get ()); in print_string_repr()
638 gdbpy_ref<> py_str = pretty_print_one_value (printer_obj, replacement); in apply_varobj_pretty_printer() local
640 if (*replacement == NULL && py_str == NULL) in apply_varobj_pretty_printer()
643 return py_str; in apply_varobj_pretty_printer()

12345678910>>...12