Searched refs:SimpleNamespace (Results 1 – 18 of 18) sorted by relevance
/third_party/python/Lib/test/ |
D | test_types.py | 1565 ns1 = types.SimpleNamespace() 1566 ns2 = types.SimpleNamespace(x=1, y=2) 1567 ns3 = types.SimpleNamespace(**dict(x=1, y=2)) 1570 types.SimpleNamespace(1, 2, 3) 1572 types.SimpleNamespace(**{1: 2}) 1582 ns1 = vars(types.SimpleNamespace()) 1583 ns2 = vars(types.SimpleNamespace(x=1, y=2)) 1589 ns1 = types.SimpleNamespace() 1590 ns2 = types.SimpleNamespace(x=1, y=2) 1591 ns3 = types.SimpleNamespace(a=True, b=False) [all …]
|
D | test_pprint.py | 443 ns = types.SimpleNamespace() 448 ns = types.SimpleNamespace(a=1, b=2) 453 ns = types.SimpleNamespace( 477 class AdvancedNamespace(types.SimpleNamespace): pass
|
D | test_sys.py | 1011 return types.SimpleNamespace(exc_type=type(exc),
|
/third_party/mbedtls/scripts/ |
D | abi_check.py | 38 from types import SimpleNamespace 408 old_version = SimpleNamespace( 418 new_version = SimpleNamespace( 428 configuration = SimpleNamespace(
|
/third_party/python/Doc/library/ |
D | types.rst | 424 .. class:: SimpleNamespace 429 Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove 430 attributes. If a ``SimpleNamespace`` object is initialized with keyword 435 class SimpleNamespace: 444 if isinstance(self, SimpleNamespace) and isinstance(other, SimpleNamespace): 448 ``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 | 1063 * See :meth:`types.SimpleNamespace` for a mutable namespace based on an
|
/third_party/python/Lib/test/test_importlib/ |
D | util.py | 26 BUILTINS = types.SimpleNamespace() 34 EXTENSIONS = types.SimpleNamespace()
|
/third_party/python/Lib/ |
D | types.py | 16 SimpleNamespace = type(sys.implementation) variable
|
D | pprint.py | 362 if type(object) is _types.SimpleNamespace: 374 _dispatch[_types.SimpleNamespace.__repr__] = _pprint_simplenamespace
|
/third_party/python/Lib/venv/ |
D | __init__.py | 111 context = types.SimpleNamespace()
|
/third_party/python/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
|
D | 3.9.0a1.rst | 2816 :mod:`pprint` now has support for :class:`types.SimpleNamespace`. Patch by
|
/third_party/python/Lib/unittest/test/ |
D | test_discovery.py | 833 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 | 622 :mod:`pprint` can now pretty-print :class:`types.SimpleNamespace`.
|
/third_party/python/Misc/ |
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.
|