Home
last modified time | relevance | path

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

12

/external/python/cpython3/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.py941 return types.SimpleNamespace(exc_type=type(exc),
/external/fonttools/Lib/fontTools/misc/plistlib/
D__init__.py21 from types import SimpleNamespace
330 def _string_element(value: str, ctx: SimpleNamespace) -> etree.Element: argument
336 def _bool_element(value: bool, ctx: SimpleNamespace) -> etree.Element: argument
342 def _integer_element(value: int, ctx: SimpleNamespace) -> etree.Element: argument
350 def _real_element(value: float, ctx: SimpleNamespace) -> etree.Element: argument
356 def _dict_element(d: Mapping[str, PlistEncodable], ctx: SimpleNamespace) -> etree.Element: argument
374 def _array_element(array: Sequence[PlistEncodable], ctx: SimpleNamespace) -> etree.Element: argument
385 def _date_element(date: datetime, ctx: SimpleNamespace) -> etree.Element: argument
391 def _data_element(data: bytes, ctx: SimpleNamespace) -> etree.Element: argument
402 def _string_or_data_element(raw_bytes: bytes, ctx: SimpleNamespace) -> etree.Element: argument
[all …]
/external/fonttools/Tests/ttLib/tables/
DT_S_I__0_test.py1 from types import SimpleNamespace
66 font = {'maxp': SimpleNamespace(numGlyphs=numGlyphs)}
/external/fonttools/Snippets/
Dsvg2glif.py7 from fontTools.misc.py23 import SimpleNamespace
25 glyph = SimpleNamespace(width=width, height=height, unicodes=unicodes)
/external/llvm-project/debuginfo-tests/dexter/dex/debugger/
DDebuggerBase.py15 from types import SimpleNamespace
221 self.options = SimpleNamespace(source_root_dir = '', source_files = [])
222 context = SimpleNamespace(options = self.options)
/external/fonttools/Lib/fontTools/misc/
Dcython.py11 from types import SimpleNamespace
Dpy23.py9 from types import SimpleNamespace
/external/python/cpython3/Doc/library/
Dtypes.rst367 .. class:: SimpleNamespace
372 Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove
373 attributes. If a ``SimpleNamespace`` object is initialized with keyword
378 class SimpleNamespace:
387 if isinstance(self, SimpleNamespace) and isinstance(other, SimpleNamespace):
391 ``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
/external/pigweed/pw_rpc/py/pw_rpc/console_tools/
Dconsole.py151 self._services: Dict[str, types.SimpleNamespace] = defaultdict(
152 types.SimpleNamespace)
/external/fonttools/Lib/fontTools/ttLib/
Dsfnt.py16 from types import SimpleNamespace
603 self = SimpleNamespace()
614 self = SimpleNamespace()
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py24 BUILTINS = types.SimpleNamespace()
32 EXTENSIONS = types.SimpleNamespace()
/external/python/cpython3/Lib/
Dtypes.py16 SimpleNamespace = type(sys.implementation) variable
Dpprint.py346 if type(object) is _types.SimpleNamespace:
370 _dispatch[_types.SimpleNamespace.__repr__] = _pprint_simplenamespace
/external/python/cpython3/Lib/test/libregrtest/
Druntest_mp.py48 ns = types.SimpleNamespace(**ns_dict)
/external/python/cpython3/Lib/venv/
D__init__.py111 context = types.SimpleNamespace()
/external/fonttools/Tests/varLib/instancer/
Dinstancer_test.py21 from types import SimpleNamespace
412 fvarAxes = [SimpleNamespace(axisTag=axisTag) for axisTag in axisOrder]
/external/python/cpython3/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
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py832 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.rst240 - [sfnt] Fixed ``NameError: SimpleNamespace`` while reading TTC header. The regression
1403 - [py23] Added backport for python 3's ``types.SimpleNamespace`` class.

12