Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_types.py603 mappingproxy = types.MappingProxyType variable in MappingProxyTests
610 self.assertEqual(self.mappingproxy(mapping), mapping)
612 self.assertEqual(self.mappingproxy(mapping), mapping)
614 self.assertEqual(self.mappingproxy(mapping), mapping)
616 self.assertRaises(TypeError, self.mappingproxy, 10)
617 self.assertRaises(TypeError, self.mappingproxy, ("a", "tuple"))
618 self.assertRaises(TypeError, self.mappingproxy, ["a", "list"])
621 attrs = set(dir(self.mappingproxy({}))) - set(dir(object()))
640 view = self.mappingproxy({'a': 'A', 'b': 'B'})
653 view = self.mappingproxy(dictmissing(x=1))
[all …]
/external/python/cpython3/Objects/
Ddescrobject.c1215 mappingproxyobject *mappingproxy; in mappingproxy_new_impl() local
1220 mappingproxy = PyObject_GC_New(mappingproxyobject, &PyDictProxy_Type); in mappingproxy_new_impl()
1221 if (mappingproxy == NULL) in mappingproxy_new_impl()
1224 mappingproxy->mapping = mapping; in mappingproxy_new_impl()
1225 _PyObject_GC_TRACK(mappingproxy); in mappingproxy_new_impl()
1226 return (PyObject *)mappingproxy; in mappingproxy_new_impl()
/external/python/cpython3/Lib/
D_collections_abc.py57 mappingproxy = type(type.__dict__) variable
710 Mapping.register(mappingproxy)