Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_types.py1154 ns1 = types.SimpleNamespace()
1155 ns2 = types.SimpleNamespace(x=1, y=2)
1156 ns3 = types.SimpleNamespace(**dict(x=1, y=2))
1159 types.SimpleNamespace(1, 2, 3)
1161 types.SimpleNamespace(**{1: 2})
1171 ns1 = vars(types.SimpleNamespace())
1172 ns2 = vars(types.SimpleNamespace(x=1, y=2))
1178 ns1 = types.SimpleNamespace()
1179 ns2 = types.SimpleNamespace(x=1, y=2)
1180 ns3 = types.SimpleNamespace(a=True, b=False)
[all …]
/external/fonttools/Tests/ttLib/tables/
DT_S_I__0_test.py2 from fontTools.misc.py23 import SimpleNamespace
67 font = {'maxp': SimpleNamespace(numGlyphs=numGlyphs)}
/external/fonttools/Snippets/
Dsvg2glif.py8 from fontTools.misc.py23 import SimpleNamespace
26 glyph = SimpleNamespace(width=width, height=height, unicodes=unicodes)
/external/python/cpython3/Doc/library/
Dtypes.rst310 .. class:: SimpleNamespace
315 Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove
316 attributes. If a ``SimpleNamespace`` object is initialized with keyword
321 class SimpleNamespace:
333 ``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``.
Dcollections.rst1026 * See :meth:`types.SimpleNamespace` for a mutable namespace based on an
/external/fonttools/Lib/fontTools/misc/
Dpy23.py452 from types import SimpleNamespace
454 class SimpleNamespace(object): class
Dplistlib.py29 SimpleNamespace,
442 context = SimpleNamespace(
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py23 BUILTINS = types.SimpleNamespace()
31 EXTENSIONS = types.SimpleNamespace()
/external/python/cpython3/Lib/test/libregrtest/
Druntest_mp.py63 ns = types.SimpleNamespace(**ns_dict)
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py599 self = SimpleNamespace()
610 self = SimpleNamespace()
/external/python/cpython3/Lib/
Dtypes.py16 SimpleNamespace = type(sys.implementation) variable
/external/python/cpython3/Lib/venv/
D__init__.py102 context = types.SimpleNamespace()
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b1.rst36 Fixed system error in the comparison of faked types.SimpleNamespace.
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py826 package.__spec__ = types.SimpleNamespace(
/external/python/cpython3/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
/external/fonttools/
DNEWS.rst726 - [py23] Added backport for python 3's ``types.SimpleNamespace`` class.
DPKG-INFO1143 - [py23] Added backport for python 3's ``types.SimpleNamespace`` class.
/external/fonttools/Lib/fonttools.egg-info/
DPKG-INFO1143 - [py23] Added backport for python 3's ``types.SimpleNamespace`` class.
/external/python/cpython3/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.