Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_types.py1183 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 …]
Dtest_pprint.py350 ns = types.SimpleNamespace()
355 ns = types.SimpleNamespace(a=1, b=2)
360 ns = types.SimpleNamespace(
384 class AdvancedNamespace(types.SimpleNamespace): pass
Dtest_sys.py948 return types.SimpleNamespace(exc_type=type(exc),
/third_party/mbedtls/scripts/
Dabi_check.py65 from types import SimpleNamespace
435 old_version = SimpleNamespace(
445 new_version = SimpleNamespace(
455 configuration = SimpleNamespace(
/third_party/python/Doc/library/
Dtypes.rst370 .. 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``.
Dpprint.rst29 Added support for pretty-printing :class:`types.SimpleNamespace`.
Dcollections.rst1041 * See :meth:`types.SimpleNamespace` for a mutable namespace based on an
/third_party/python/Lib/test/test_importlib/
Dutil.py24 BUILTINS = types.SimpleNamespace()
32 EXTENSIONS = types.SimpleNamespace()
/third_party/python/Lib/
Dtypes.py16 SimpleNamespace = type(sys.implementation) variable
Dpprint.py346 if type(object) is _types.SimpleNamespace:
370 _dispatch[_types.SimpleNamespace.__repr__] = _pprint_simplenamespace
/third_party/python/Lib/test/libregrtest/
Druntest_mp.py48 ns = types.SimpleNamespace(**ns_dict)
/third_party/python/Lib/venv/
D__init__.py111 context = types.SimpleNamespace()
/third_party/python/Lib/unittest/test/
Dtest_discovery.py832 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.rst618 :mod:`pprint` can now pretty-print :class:`types.SimpleNamespace`.
/third_party/python/Misc/
DNEWS1755 - bpo-39075: The repr for :class:`types.SimpleNamespace` is now insertion
4898 :class:`types.SimpleNamespace`. Patch by Carl Bordum Hansen.
23683 types.SimpleNamespace.
DHISTORY204 types.SimpleNamespace.
4677 - Issue #16160: Subclass support now works for types.SimpleNamespace.
4711 - Issue #15022: Add pickle and comparison support to types.SimpleNamespace.