Home
last modified time | relevance | path

Searched refs:asdict (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_dataclasses.py1327 self.assertEqual(asdict(c), {'x': 1, 'y': 2})
1328 self.assertEqual(asdict(c), asdict(c))
1329 self.assertIsNot(asdict(c), asdict(c))
1331 self.assertEqual(asdict(c), {'x': 42, 'y': 2})
1332 self.assertIs(type(asdict(c)), dict)
1341 asdict(C)
1343 asdict(int)
1352 d = asdict(c)
1356 d = asdict(c)
1370 d = asdict(u)
[all …]
/external/fonttools/Lib/fontTools/designspaceLib/
D__init__.py65 def asdict(self): member in AsDictMixin
71 value = value.asdict()
74 v.asdict() if hasattr(v, "asdict") else v for v in value
/external/python/cpython3/Doc/library/
Ddataclasses.rst288 .. function:: asdict(instance, *, dict_factory=dict)
305 assert asdict(p) == {'x': 10, 'y': 20}
308 assert asdict(c) == {'mylist': [{'x': 0, 'y': 0}, {'x': 10, 'y': 4}]}
/external/python/cpython3/Lib/
Ddataclasses.py1023 def asdict(obj, *, dict_factory=dict): function
/external/fonttools/Lib/fontTools/varLib/
D__init__.py740 log.info("Axes:\n%s", pformat([axis.asdict() for axis in axes.values()]))
/external/python/cpython3/Misc/NEWS.d/
D3.7.1rc1.rst366 dataclasses.asdict() and .astuple() now handle namedtuples correctly.