Searched refs:SimpleNamespace (Results 1 – 17 of 17) sorted by relevance
/third_party/python/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 | 948 return types.SimpleNamespace(exc_type=type(exc),
|
/third_party/mbedtls/scripts/ |
D | abi_check.py | 65 from types import SimpleNamespace 435 old_version = SimpleNamespace( 445 new_version = SimpleNamespace( 455 configuration = SimpleNamespace(
|
/third_party/python/Doc/library/ |
D | types.rst | 370 .. class:: SimpleNamespace 375 Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove 376 attributes. If a ``SimpleNamespace`` object is initialized with keyword 381 class SimpleNamespace: 390 if isinstance(self, SimpleNamespace) and isinstance(other, SimpleNamespace): 394 ``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
|
/third_party/python/Lib/test/test_importlib/ |
D | util.py | 24 BUILTINS = types.SimpleNamespace() 32 EXTENSIONS = types.SimpleNamespace()
|
/third_party/python/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
|
/third_party/python/Lib/test/libregrtest/ |
D | runtest_mp.py | 48 ns = types.SimpleNamespace(**ns_dict)
|
/third_party/python/Lib/venv/ |
D | __init__.py | 111 context = types.SimpleNamespace()
|
/third_party/python/Lib/unittest/test/ |
D | test_discovery.py | 832 package.__spec__ = types.SimpleNamespace(
|
/third_party/python/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
|
D | 3.9.rst | 618 :mod:`pprint` can now pretty-print :class:`types.SimpleNamespace`.
|
/third_party/python/Misc/ |
D | NEWS | 1755 - bpo-39075: The repr for :class:`types.SimpleNamespace` is now insertion 4898 :class:`types.SimpleNamespace`. Patch by Carl Bordum Hansen. 23683 types.SimpleNamespace.
|
D | HISTORY | 204 types.SimpleNamespace. 4677 - Issue #16160: Subclass support now works for types.SimpleNamespace. 4711 - Issue #15022: Add pickle and comparison support to types.SimpleNamespace.
|