/external/python/cpython3/Lib/test/ |
D | test_types.py | 1183 ns1 = types.SimpleNamespace() 1184 ns2 = types.SimpleNamespace(x=1, y=2) 1185 ns3 = types.SimpleNamespace(**dict(x=1, y=2)) 1188 types.SimpleNamespace(1, 2, 3) 1190 types.SimpleNamespace(**{1: 2}) 1200 ns1 = vars(types.SimpleNamespace()) 1201 ns2 = vars(types.SimpleNamespace(x=1, y=2)) 1207 ns1 = types.SimpleNamespace() 1208 ns2 = types.SimpleNamespace(x=1, y=2) 1209 ns3 = types.SimpleNamespace(a=True, b=False) [all …]
|
D | test_pprint.py | 350 ns = types.SimpleNamespace() 355 ns = types.SimpleNamespace(a=1, b=2) 360 ns = types.SimpleNamespace( 384 class AdvancedNamespace(types.SimpleNamespace): pass
|
D | test_sys.py | 941 return types.SimpleNamespace(exc_type=type(exc),
|
/external/fonttools/Lib/fontTools/misc/plistlib/ |
D | __init__.py | 21 from types import SimpleNamespace 330 def _string_element(value: str, ctx: SimpleNamespace) -> etree.Element: argument 336 def _bool_element(value: bool, ctx: SimpleNamespace) -> etree.Element: argument 342 def _integer_element(value: int, ctx: SimpleNamespace) -> etree.Element: argument 350 def _real_element(value: float, ctx: SimpleNamespace) -> etree.Element: argument 356 def _dict_element(d: Mapping[str, PlistEncodable], ctx: SimpleNamespace) -> etree.Element: argument 374 def _array_element(array: Sequence[PlistEncodable], ctx: SimpleNamespace) -> etree.Element: argument 385 def _date_element(date: datetime, ctx: SimpleNamespace) -> etree.Element: argument 391 def _data_element(data: bytes, ctx: SimpleNamespace) -> etree.Element: argument 402 def _string_or_data_element(raw_bytes: bytes, ctx: SimpleNamespace) -> etree.Element: argument [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | T_S_I__0_test.py | 1 from types import SimpleNamespace 66 font = {'maxp': SimpleNamespace(numGlyphs=numGlyphs)}
|
/external/fonttools/Snippets/ |
D | svg2glif.py | 7 from fontTools.misc.py23 import SimpleNamespace 25 glyph = SimpleNamespace(width=width, height=height, unicodes=unicodes)
|
/external/llvm-project/debuginfo-tests/dexter/dex/debugger/ |
D | DebuggerBase.py | 15 from types import SimpleNamespace 221 self.options = SimpleNamespace(source_root_dir = '', source_files = []) 222 context = SimpleNamespace(options = self.options)
|
/external/fonttools/Lib/fontTools/misc/ |
D | cython.py | 11 from types import SimpleNamespace
|
D | py23.py | 9 from types import SimpleNamespace
|
/external/python/cpython3/Doc/library/ |
D | types.rst | 367 .. class:: SimpleNamespace 372 Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove 373 attributes. If a ``SimpleNamespace`` object is initialized with keyword 378 class SimpleNamespace: 387 if isinstance(self, SimpleNamespace) and isinstance(other, SimpleNamespace): 391 ``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``.
|
D | pprint.rst | 29 Added support for pretty-printing :class:`types.SimpleNamespace`.
|
D | collections.rst | 1041 * See :meth:`types.SimpleNamespace` for a mutable namespace based on an
|
/external/pigweed/pw_rpc/py/pw_rpc/console_tools/ |
D | console.py | 151 self._services: Dict[str, types.SimpleNamespace] = defaultdict( 152 types.SimpleNamespace)
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | sfnt.py | 16 from types import SimpleNamespace 603 self = SimpleNamespace() 614 self = SimpleNamespace()
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | util.py | 24 BUILTINS = types.SimpleNamespace() 32 EXTENSIONS = types.SimpleNamespace()
|
/external/python/cpython3/Lib/ |
D | types.py | 16 SimpleNamespace = type(sys.implementation) variable
|
D | pprint.py | 346 if type(object) is _types.SimpleNamespace: 370 _dispatch[_types.SimpleNamespace.__repr__] = _pprint_simplenamespace
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | runtest_mp.py | 48 ns = types.SimpleNamespace(**ns_dict)
|
/external/python/cpython3/Lib/venv/ |
D | __init__.py | 111 context = types.SimpleNamespace()
|
/external/fonttools/Tests/varLib/instancer/ |
D | instancer_test.py | 21 from types import SimpleNamespace 412 fvarAxes = [SimpleNamespace(axisTag=axisTag) for axisTag in axisOrder]
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0b1.rst | 36 Fixed system error in the comparison of faked types.SimpleNamespace.
|
D | 3.9.0b1.rst | 632 The repr for :class:`types.SimpleNamespace` is now insertion ordered rather
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_discovery.py | 832 package.__spec__ = types.SimpleNamespace(
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 666 SimpleNamespace section in PEP 421: Adding sys.implementation 670 Python: :class:`types.SimpleNamespace`. In contrast to a mapping-based 671 namespace, like :class:`dict`, ``SimpleNamespace`` is attribute-based, like 672 :class:`object`. However, unlike ``object``, ``SimpleNamespace`` instances
|
/external/fonttools/ |
D | NEWS.rst | 240 - [sfnt] Fixed ``NameError: SimpleNamespace`` while reading TTC header. The regression 1403 - [py23] Added backport for python 3's ``types.SimpleNamespace`` class.
|