Home
last modified time | relevance | path

Searched refs:whichmodule (Results 1 – 7 of 7) sorted by relevance

/external/pytorch/torch/package/
Dimporter.py7 whichmodule as _pickle_whichmodule,
92 orig_module_name = self.whichmodule(obj, name)
112 module_name = self.whichmodule(obj, name)
137 def whichmodule(self, obj: Any, name: str) -> str: member in Importer
173 def whichmodule(self, obj: Any, name: str) -> str: member in _SysImporter
228 def whichmodule(self, obj: Any, name: str) -> str: member in OrderedImporter
230 module_name = importer.whichmodule(obj, name)
/external/pytorch/test/package/
Dtest_importer.py104 def whichmodule(self, obj, name): member in TestImporter.test_ordered_importer_whichmodule.DummyImporter
117 self.assertEqual(foo_then_bar.whichmodule(DummyClass(), ""), "foo")
120 self.assertEqual(bar_then_foo.whichmodule(DummyClass(), ""), "bar")
125 self.assertEqual(notfound_then_foo.whichmodule(DummyClass(), ""), "foo")
/external/python/cpython3/Lib/
Dpickle.py330 def whichmodule(obj, name): function
1081 module_name = whichmodule(obj, name)
/external/python/cpython3/Misc/NEWS.d/
D3.10.0a3.rst467 We fixed an issue in ``pickle.whichmodule`` in which importing
D3.5.0a1.rst1921 Avoid RuntimeError in pickle.whichmodule() when sys.modules is mutated while
/external/python/cpython3/Modules/
D_pickle.c1912 whichmodule(PyObject *global, PyObject *dotted_path) in whichmodule() function
3625 module_name = whichmodule(obj, dotted_path); in save_global()
/external/python/cpython3/Misc/
DHISTORY1212 - Issue #21905: Avoid RuntimeError in pickle.whichmodule() when sys.modules
21969 defined in Python. This attribute is used by pickle.whichmodule(),
21970 which changes the behavior of whichmodule slightly. In Python 2.2
21971 whichmodule() returns "__main__" for functions that are not defined
21973 Now whichmodule() will return the proper module name.