Home
last modified time | relevance | path

Searched refs:PyBytes_FromFormat (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_bytes.py1036 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/
Dbytesobject.h14 #define PyBytes_FromFormat PyString_FromFormat macro
/external/python/cpython3/Include/
Dbytesobject.h42 PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
/external/python/cpython3/Doc/c-api/
Dbytes.rst51 .. 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/
Dpython3.def29 PyBytes_FromFormat=python39.PyBytes_FromFormat
/external/python/cpython3/Doc/data/
Drefcounts.dat139 PyBytes_FromFormat:PyObject*::+1:
140 PyBytes_FromFormat:const char*:format::
141 PyBytes_FromFormat::...::
/external/python/cpython2/Objects/
Dbytesobject.c364 PyBytes_FromFormat(const char *format, ...) in PyBytes_FromFormat() function
/external/python/cpython3/Objects/
Dbytesobject.c357 PyBytes_FromFormat(const char *format, ...) in PyBytes_FromFormat() function
Dunicodeobject.c7314 *obj = PyBytes_FromFormat("cp%u", code_page); in code_page_name()
/external/python/cpython3/Modules/
Dposixmodule.c5530 keyval = PyBytes_FromFormat("%s=%s", PyBytes_AS_STRING(key2), in parse_envlist()
/external/python/cpython3/Misc/NEWS.d/
D3.8.0a1.rst239 ``%s`` in :c:func:`PyBytes_FromFormat` no longer read memory past the limit