Home
last modified time | relevance | path

Searched refs:SimpleNamespace (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Lib/test/
Dtest_types.py1565 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 …]
Dtest_pprint.py443 ns = types.SimpleNamespace()
448 ns = types.SimpleNamespace(a=1, b=2)
453 ns = types.SimpleNamespace(
477 class AdvancedNamespace(types.SimpleNamespace): pass
Dtest_sys.py1011 return types.SimpleNamespace(exc_type=type(exc),
/third_party/mbedtls/scripts/
Dabi_check.py112 from types import SimpleNamespace
330 metadata = SimpleNamespace(
627 old_version = SimpleNamespace(
638 new_version = SimpleNamespace(
649 configuration = SimpleNamespace(
/third_party/python/Doc/library/
Dtypes.rst424 .. 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``.
Dpprint.rst29 Added support for pretty-printing :class:`types.SimpleNamespace`.
Dcollections.rst1063 * See :meth:`types.SimpleNamespace` for a mutable namespace based on an
/third_party/python/Lib/test/test_importlib/
Dutil.py26 BUILTINS = types.SimpleNamespace()
34 EXTENSIONS = types.SimpleNamespace()
/third_party/python/Lib/
Dtypes.py16 SimpleNamespace = type(sys.implementation) variable
Dpprint.py362 if type(object) is _types.SimpleNamespace:
374 _dispatch[_types.SimpleNamespace.__repr__] = _pprint_simplenamespace
/third_party/python/Lib/venv/
D__init__.py111 context = types.SimpleNamespace()
/third_party/python/Misc/NEWS.d/
D3.5.0b1.rst36 Fixed system error in the comparison of faked types.SimpleNamespace.
D3.9.0b1.rst632 The repr for :class:`types.SimpleNamespace` is now insertion ordered rather
D3.9.0a1.rst2816 :mod:`pprint` now has support for :class:`types.SimpleNamespace`. Patch by
/third_party/python/Lib/unittest/test/
Dtest_discovery.py833 package.__spec__ = types.SimpleNamespace(
/third_party/python/Doc/whatsnew/
D3.3.rst666 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
D3.9.rst622 :mod:`pprint` can now pretty-print :class:`types.SimpleNamespace`.
/third_party/python/Misc/
DHISTORY204 types.SimpleNamespace.
4677 - Issue #16160: Subclass support now works for types.SimpleNamespace.
4711 - Issue #15022: Add pickle and comparison support to types.SimpleNamespace.