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()))
635 view = self.mappingproxy({'a': 'A', 'b': 'B'})
648 view = self.mappingproxy(dictmissing(x=1))
[all …]
/external/python/cpython3/Objects/
Ddescrobject.c977 mappingproxyobject *mappingproxy; in mappingproxy_new_impl() local
982 mappingproxy = PyObject_GC_New(mappingproxyobject, &PyDictProxy_Type); in mappingproxy_new_impl()
983 if (mappingproxy == NULL) in mappingproxy_new_impl()
986 mappingproxy->mapping = mapping; in mappingproxy_new_impl()
987 _PyObject_GC_TRACK(mappingproxy); in mappingproxy_new_impl()
988 return (PyObject *)mappingproxy; in mappingproxy_new_impl()
/external/python/cpython3/Lib/
D_collections_abc.py55 mappingproxy = type(type.__dict__) variable
691 Mapping.register(mappingproxy)