Searched refs:unicode_asutf8 (Results 1 – 2 of 2) sorted by relevance
2871 from _testcapi import unicode_asutf82877 self.assertEqual(unicode_asutf8(bmp), b'\xc4\x80')2878 self.assertEqual(unicode_asutf8(bmp2), b'\xef\xbf\xbf')2879 self.assertEqual(unicode_asutf8(nonbmp), b'\xf4\x8f\xbf\xbf')2880 self.assertRaises(UnicodeEncodeError, unicode_asutf8, 'a\ud800b\udfffc')
2074 unicode_asutf8(PyObject *self, PyObject *args) in unicode_asutf8() function5761 {"unicode_asutf8", unicode_asutf8, METH_VARARGS},