Home
last modified time | relevance | path

Searched refs:charbuffer_encode (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
D_codecsmodule.c618 charbuffer_encode(PyObject *self, in charbuffer_encode() function
1099 {"charbuffer_encode", charbuffer_encode, METH_VARARGS},
/external/python/cpython2/Lib/test/
Dtest_codecs.py802 self.assertEqual(codecs.charbuffer_encode("spam"), ("spam", 4))
805 self.assertEqual(codecs.charbuffer_encode(""), ("", 0))
808 self.assertRaises(TypeError, codecs.charbuffer_encode)
809 self.assertRaises(TypeError, codecs.charbuffer_encode, 42)
/external/python/cpython3/Misc/
DHISTORY12735 - Issue #8838: Remove codecs.charbuffer_encode() function. The buffer protocol
12739 instead. codecs.charbuffer_encode() now accepts modifiable buffer objects