Home
last modified time | relevance | path

Searched refs:PyOS_snprintf (Results 1 – 25 of 103) sorted by relevance

12345

/external/python/cpython2/Lib/ctypes/test/
Dtest_python_api.py71 PyOS_snprintf = pythonapi.PyOS_snprintf
72 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
75 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes")
78 PyOS_snprintf(buf, sizeof(buf), "Hello from %s", "ctypes", 1, 2, 3)
82 self.assertRaises(TypeError, PyOS_snprintf, buf)
/external/python/cpython3/Lib/ctypes/test/
Dtest_python_api.py70 PyOS_snprintf = pythonapi.PyOS_snprintf
71 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
74 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes")
77 PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3)
81 self.assertRaises(TypeError, PyOS_snprintf, buf)
/external/python/cpython2/Python/
Ddynload_beos.c197 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
201 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
209 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
226 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
231 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
236 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
Ddynload_win.c172 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname);
227 PyOS_snprintf(errBuf, sizeof(errBuf),
252 PyOS_snprintf(buffer, sizeof(buffer), "python%d%d_d.dll",
254 PyOS_snprintf(buffer, sizeof(buffer), "python%d%d.dll",
261 PyOS_snprintf(buffer, sizeof(buffer),
Ddynload_shlib.c80 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_GetDynLoadFunc()
84 PyOS_snprintf(funcname, sizeof(funcname), in _PyImport_GetDynLoadFunc()
125 PyOS_snprintf(pathbuf, sizeof(pathbuf), "python_module_%-.200s", in _PyImport_GetDynLoadFunc()
Ddynload_atheos.c32 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s: %.200s", in _PyImport_GetDynLoadFunc()
37 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
Ddynload_os2.c34 PyOS_snprintf(errBuf, sizeof(errBuf), in _PyImport_GetDynLoadFunc()
41 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
Ddynload_hpux.c42 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s", in _PyImport_GetDynLoadFunc()
47 PyOS_snprintf(funcname, sizeof(funcname), FUNCNAME_PATTERN, shortname); in _PyImport_GetDynLoadFunc()
Ddynload_next.c46 PyOS_snprintf(funcname, sizeof(funcname), "_init%.200s", shortname); in _PyImport_GetDynLoadFunc()
83 PyOS_snprintf(errBuf, 512, "Failure linking new module: %s: %s", in _PyImport_GetDynLoadFunc()
Dgetargs.c286 PyOS_snprintf(msgbuf, sizeof(msgbuf), in vgetargs1()
295 PyOS_snprintf(msgbuf, sizeof(msgbuf), in vgetargs1()
326 PyOS_snprintf(msgbuf, sizeof(msgbuf), in vgetargs1()
379 PyOS_snprintf(p, sizeof(buf), "%.200s() ", fname); in seterror()
383 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror()
388 PyOS_snprintf(p, sizeof(buf) - (p - buf), in seterror()
395 PyOS_snprintf(p, sizeof(buf) - (p - buf), "argument"); in seterror()
398 PyOS_snprintf(p, sizeof(buf) - (p - buf), " %.256s", msg); in seterror()
453 PyOS_snprintf(msgbuf, bufsize, in converttuple()
463 PyOS_snprintf(msgbuf, bufsize, in converttuple()
[all …]
Dthread_beos.h126 PyOS_snprintf(name, sizeof(name), in PyThread_start_new_thread()
187 PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock); in PyThread_allocate_lock()
Dthread_atheos.h109 PyOS_snprintf(name, sizeof(name), "python thread (%d)", this_thread); in PyThread_start_new_thread()
173 PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock); in PyThread_allocate_lock()
Dgetversion.c12 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", in Py_GetVersion()
Ddynload_dl.c24 PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname); in _PyImport_GetDynLoadFunc()
/external/python/cpython2/Parser/
Dgrammar1.c42 PyOS_snprintf(buf, sizeof(buf), "NT%d", lb->lb_type); in PyGrammar_LabelRepr()
52 PyOS_snprintf(buf, sizeof(buf), "%.32s(%.32s)", in PyGrammar_LabelRepr()
/external/python/cpython3/Parser/
Dgrammar1.c41 PyOS_snprintf(buf, sizeof(buf), "NT%d", lb->lb_type); in PyGrammar_LabelRepr()
51 PyOS_snprintf(buf, sizeof(buf), "%.32s(%.32s)", in PyGrammar_LabelRepr()
/external/python/cpython3/Python/
Ddynload_hpux.c43 PyOS_snprintf(buf, sizeof(buf), "Failed to load %.200s", in _PyImport_FindSharedFuncptr()
54 PyOS_snprintf(funcname, sizeof(funcname), FUNCNAME_PATTERN, in _PyImport_FindSharedFuncptr()
Ddynload_shlib.c68 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_FindSharedFuncptr()
72 PyOS_snprintf(funcname, sizeof(funcname), in _PyImport_FindSharedFuncptr()
Ddynload_win.c203 PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
286 PyOS_snprintf(buffer, sizeof(buffer),
Dgetversion.c12 PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", in Py_GetVersion()
Ddynload_dl.c21 PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); in _PyImport_FindSharedFuncptr()
/external/python/cpython2/RISCOS/Python/
Ddynload_riscos.c59 PyOS_snprintf(errstr, sizeof(errstr), "dlk failure %d", err); in _PyImport_GetDynLoadFunc()
/external/python/cpython2/Objects/
Dexceptions.c1181 PyOS_snprintf(buffer, bufsize, "%s (%s, line %ld)", in SyntaxError_str()
1186 PyOS_snprintf(buffer, bufsize, "%s (%s)", in SyntaxError_str()
1190 PyOS_snprintf(buffer, bufsize, "%s (line %ld)", in SyntaxError_str()
1651 PyOS_snprintf(badchar_str, sizeof(badchar_str), "x%02x", badchar); in UnicodeEncodeError_str()
1653 PyOS_snprintf(badchar_str, sizeof(badchar_str), "u%04x", badchar); in UnicodeEncodeError_str()
1655 PyOS_snprintf(badchar_str, sizeof(badchar_str), "U%08x", badchar); in UnicodeEncodeError_str()
1738 PyOS_snprintf(byte, sizeof(byte), "%02x", in UnicodeDecodeError_str()
1836 PyOS_snprintf(badchar_str, sizeof(badchar_str), "x%02x", badchar); in UnicodeTranslateError_str()
1838 PyOS_snprintf(badchar_str, sizeof(badchar_str), "u%04x", badchar); in UnicodeTranslateError_str()
1840 PyOS_snprintf(badchar_str, sizeof(badchar_str), "U%08x", badchar); in UnicodeTranslateError_str()
/external/python/cpython3/Doc/c-api/
Dconversion.rst11 .. c:function:: int PyOS_snprintf(char *str, size_t size, const char *format, ...)
23 :c:func:`PyOS_snprintf` and :c:func:`PyOS_vsnprintf` wrap the Standard C library
108 documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for
/external/python/cpython2/Modules/
Dgetbuildinfo.c45 PyOS_snprintf(buildinfo, sizeof(buildinfo), in Py_GetBuildInfo()

12345