Searched refs:PyBytes_FromFormat (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_bytes.py | 1036 PyBytes_FromFormat = pythonapi.PyBytes_FromFormat 1037 PyBytes_FromFormat.argtypes = (c_char_p,) 1038 PyBytes_FromFormat.restype = py_object 1041 self.assertEqual(PyBytes_FromFormat(b'format'), 1043 self.assertEqual(PyBytes_FromFormat(b'Hello %s !', b'world'), 1047 self.assertEqual(PyBytes_FromFormat(b'c=%c', c_int(0)), 1049 self.assertEqual(PyBytes_FromFormat(b'c=%c', c_int(ord('@'))), 1051 self.assertEqual(PyBytes_FromFormat(b'c=%c', c_int(255)), 1053 self.assertEqual(PyBytes_FromFormat(b'd=%d ld=%ld zd=%zd', 1057 self.assertEqual(PyBytes_FromFormat(b'd=%d ld=%ld zd=%zd', [all …]
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 14 #define PyBytes_FromFormat PyString_FromFormat macro
|
/external/python/cpython3/Include/ |
D | bytesobject.h | 42 PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
|
/external/python/cpython3/Doc/c-api/ |
D | bytes.rst | 51 .. c:function:: PyObject* PyBytes_FromFormat(const char *format, ...) 120 Identical to :c:func:`PyBytes_FromFormat` except that it takes exactly two
|
/external/python/cpython3/PC/ |
D | python3.def | 29 PyBytes_FromFormat=python39.PyBytes_FromFormat
|
/external/python/cpython3/Doc/data/ |
D | refcounts.dat | 139 PyBytes_FromFormat:PyObject*::+1: 140 PyBytes_FromFormat:const char*:format:: 141 PyBytes_FromFormat::...::
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 364 PyBytes_FromFormat(const char *format, ...) in PyBytes_FromFormat() function
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 357 PyBytes_FromFormat(const char *format, ...) in PyBytes_FromFormat() function
|
D | unicodeobject.c | 7314 *obj = PyBytes_FromFormat("cp%u", code_page); in code_page_name()
|
/external/python/cpython3/Modules/ |
D | posixmodule.c | 5530 keyval = PyBytes_FromFormat("%s=%s", PyBytes_AS_STRING(key2), in parse_envlist()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.8.0a1.rst | 239 ``%s`` in :c:func:`PyBytes_FromFormat` no longer read memory past the limit
|