Searched refs:dict_popstring (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/test_capi/ |
D | test_dict.py | 505 dict_popstring = _testcapi.dict_popstring 510 self.assertEqual(dict_popstring(mydict, "key"), (1, "value")) 512 self.assertEqual(dict_popstring(mydict, "key2"), (1, "value2")) 523 self.assertEqual(dict_popstring({}, "key"), (0, NULL)) 525 self.assertEqual(dict_popstring({"a": 1}, "key"), (0, NULL)) 531 self.assertEqual(dict_popstring(dct, '\U0001f40d'.encode()), (1, 123)) 537 self.assertRaises(SystemError, dict_popstring, not_dict, "key") 541 self.assertRaises(UnicodeDecodeError, dict_popstring, {1: 2}, INVALID_UTF8)
|
/external/python/cpython3/Modules/_testcapi/ |
D | dict.c | 146 dict_popstring(PyObject *self, PyObject *args) in dict_popstring() function 205 {"dict_popstring", dict_popstring, METH_VARARGS},
|