Home
last modified time | relevance | path

Searched refs:ModuleType (Results 1 – 25 of 98) sorted by relevance

1234

/external/python/cpython3/Lib/test/
Dtest_module.py8 ModuleType = type(sys) variable
23 foo = ModuleType.__new__(ModuleType)
31 self.assertEqual(foo.__doc__, ModuleType.__doc__)
36 foo = ModuleType.__new__(ModuleType)
44 foo = ModuleType("foo")
51 foo = ModuleType("foo")
63 foo = ModuleType("foo", "foodoc")
73 foo = ModuleType("foo", "foodoc\u1234")
83 foo = ModuleType("foo", "foodoc\u1234")
98 foo = ModuleType("foo")
[all …]
/external/python/cpython2/Lib/test/
Dtest_module.py6 ModuleType = type(sys) variable
12 foo = ModuleType.__new__(ModuleType)
20 self.assertEqual(foo.__doc__, ModuleType.__doc__)
24 foo = ModuleType("foo")
31 foo = ModuleType("foo", "foodoc")
39 foo = ModuleType("foo", u"foodoc\u1234")
47 foo = ModuleType("foo", u"foodoc\u1234")
62 foo = ModuleType("foo")
70 m = ModuleType("foo")
/external/tensorflow/tensorflow/tools/docs/
Ddoc_generator_visitor_test.py80 tf = types.ModuleType('tf')
82 tf.submodule = types.ModuleType('submodule')
121 tf = types.ModuleType('tf')
122 tf.contrib = types.ModuleType('contrib')
123 tf.submodule = types.ModuleType('submodule')
157 tf = types.ModuleType('tf')
190 tf = types.ModuleType('tf')
191 tf.submodule = types.ModuleType('submodule')
192 tf.submodule.submodule2 = types.ModuleType('submodule2')
224 tf = types.ModuleType('tf')
[all …]
/external/python/cpython2/Lib/unittest/test/
Dtest_loader.py87 m = types.ModuleType('m')
104 m = types.ModuleType('m')
115 m = types.ModuleType('m')
154 m = types.ModuleType('m')
177 m = types.ModuleType('m')
353 m = types.ModuleType('m')
367 m = types.ModuleType('m')
383 m = types.ModuleType('m')
398 m = types.ModuleType('m')
419 m = types.ModuleType('m')
[all …]
/external/bcc/src/cc/
Dbcc_syms.cc128 if (module.type_ != ModuleType::EXEC) in load_exe()
165 if (module.type_ == ModuleType::SO) { in _add_module()
173 if (!bcc_is_perf_map(modname) || module.type_ != ModuleType::UNKNOWN) in _add_module()
184 if (it->type_ == ModuleType::PERF_MAP) in _add_module()
201 if (only_perf_map && (mod.type_ != ModuleType::PERF_MAP)) in resolve_addr()
213 } else if (mod.type_ != ModuleType::PERF_MAP) { in resolve_addr()
250 type_(ModuleType::UNKNOWN) { in Module()
256 type_ = ModuleType::EXEC; in Module()
258 type_ = ModuleType::SO; in Module()
263 type_ = ModuleType::PERF_MAP; in Module()
[all …]
Dsyms.h84 enum class ModuleType { enum
109 ModuleType type_;
/external/python/cpython3/Lib/unittest/test/
Dtest_loader.py113 m = types.ModuleType('m')
130 m = types.ModuleType('m')
141 m = types.ModuleType('m')
181 m = types.ModuleType('m')
208 m = types.ModuleType('m')
237 m = types.ModuleType('m')
265 m = types.ModuleType('m')
294 m = types.ModuleType('m')
320 m = types.ModuleType('m')
339 m = types.ModuleType('m')
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py60 self.assertIsInstance(module, types.ModuleType)
65 class CustomModule(types.ModuleType):
159 self.assertIsInstance(module, types.ModuleType)
171 module = types.ModuleType('a.b.c')
193 module = types.ModuleType(name)
208 class FalseModule(types.ModuleType):
271 module = types.ModuleType('module')
277 module = types.ModuleType('pkg')
284 module = types.ModuleType('pkg.mod')
290 module = types.ModuleType('mod')
[all …]
Dtest_api.py108 module = types.ModuleType(name)
121 module = types.ModuleType(name)
134 module = types.ModuleType(name)
369 module = sys.modules[name] = types.ModuleType(name)
435 if isinstance(module, types.ModuleType):
446 if isinstance(module, types.ModuleType):
Dtest_lazy.py70 module = types.ModuleType(TestingImporter.module_name)
130 fresh_module = types.ModuleType(TestingImporter.module_name)
Dtest_abc.py221 mod = types.ModuleType('blah')
464 module = types.ModuleType(name)
485 module = types.ModuleType('blah')
533 module = types.ModuleType('blah')
638 module = types.ModuleType('blah')
668 module = types.ModuleType('blah')
773 module = types.ModuleType(self.name)
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_api.py65 mod = types.ModuleType(PKG_NAME)
76 mod = types.ModuleType(PKG_NAME)
88 mod = types.ModuleType(PKG_NAME)
Dtest___loader__.py48 module = types.ModuleType('blah')
60 module = types.ModuleType('blah')
/external/python/apitools/apitools/base/protorpclite/
Ddescriptor_test.py297 module = types.ModuleType(module_name)
305 module = types.ModuleType('my.package.name')
316 module = types.ModuleType('')
326 module = types.ModuleType('my.module.name')
338 module = types.ModuleType('__main__')
401 modules = [types.ModuleType('package1'), types.ModuleType('package1')]
/external/python/cpython3/Lib/importlib/
Dresources.py10 from types import ModuleType
30 Package = Union[str, ModuleType]
34 def _get_package(package) -> ModuleType:
67 package: ModuleType) -> Optional[resources_abc.ResourceReader]: argument
Dutil.py219 class _LazyModule(types.ModuleType):
228 self.__class__ = types.ModuleType
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_loader.py124 self.assertIsInstance(module, types.ModuleType)
176 self.assertIsInstance(module, types.ModuleType)
183 self.assertIsInstance(module, types.ModuleType)
228 self.assertIsInstance(module, types.ModuleType)
/external/python/cpython3/Lib/test/test_importlib/builtin/
Dtest_loader.py21 self.assertIsInstance(module, types.ModuleType)
61 module = types.ModuleType(module_name)
/external/autotest/client/
Dsetup_modules.py18 module = types.ModuleType(name)
33 module = types.ModuleType(child_name)
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py145 orig_module = types.ModuleType(name)
214 module = types.ModuleType('_temp')
232 module = types.ModuleType('bad name')
254 mod = types.ModuleType('_temp')
286 mod = types.ModuleType('_temp')
310 mod = types.ModuleType('_temp')
341 mod = types.ModuleType('_temp')
511 module = types.ModuleType(module_name)
Dtest_source_encoding.py94 module = types.ModuleType(self.module_name)
150 module = types.ModuleType(module_name)
/external/bcc/src/cc/includes/
Dsyms.h84 enum class ModuleType { enum
109 ModuleType type_;
/external/python/cpython2/Lib/
Dnew.py15 from types import ModuleType as module
/external/python/cpython3/Lib/multiprocessing/
Dspawn.py246 main_module = types.ModuleType("__mp_main__")
275 main_module = types.ModuleType("__mp_main__")
/external/tensorflow/tensorflow/python/util/
Dlazy_loader.py26 class LazyLoader(types.ModuleType):

1234