Searched refs:getsource (Results 1 – 11 of 11) sorted by relevance
/third_party/python/Lib/test/ |
D | test_zipimport_support.py | 91 self.assertEqual(inspect.getsource(zip_pkg.foo), test_src) 101 test_src = inspect.getsource(test_doctest) 113 src = inspect.getsource(mod)
|
D | test_inspect.py | 377 self.assertEqual(inspect.getsource(obj), 590 inspect.getsource(ns["x"]) 604 inspect.getsource(A)" 717 self.assertRaises(OSError, inspect.getsource, unicodedata) 724 self.assertRaises(OSError, inspect.getsource, co) 728 self.assertEqual(inspect.getsource(co), lines[0]) 736 self.assertRaises(IOError, inspect.getsource, co) 739 mod_len = len(inspect.getsource(mod)) 4302 self.assertEqual(lines[:-1], inspect.getsource(module).splitlines()) 4320 inspect.getsource(ThreadPoolExecutor).splitlines()) [all …]
|
D | test_zipimport.py | 666 self.assertEqual(inspect.getsource(module), test_src)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0b4.rst | 132 Fixed an issue that caused `inspect.getsource` to return incorrect results 237 Fix inspect.getsource() for 'async def' functions. Patch by Kai Groner.
|
D | 3.10.0rc1.rst | 326 Fixed wrong error being thrown by :func:`inspect.getsource` when examining a
|
D | 3.9.0a6.rst | 858 :meth:`inspect.getsource` now returns correct source code for inner class
|
D | 3.10.0a3.rst | 295 Fix handling of trailing comments by :func:`inspect.getsource`.
|
D | 3.5.0a1.rst | 311 Fix inspect.getsource() to support decorated functions. Patch by Claudiu 1239 Fix inspect.getsource() to load updated source of reloaded module. Initial
|
/third_party/python/Lib/ |
D | inspect.py | 1141 def getsource(object): function 3306 print(getsource(obj))
|
/third_party/python/Doc/library/ |
D | inspect.rst | 531 .. function:: getsource(object)
|
/third_party/python/Misc/ |
D | HISTORY | 1097 - Issue #1218234: Fix inspect.getsource() to load updated source of 14778 - Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source' 15801 - Issue #4223: inspect.getsource() will now correctly display source code 17015 - inspect.getsource() includes the decorators again. 19968 - Patch #1006219: let inspect.getsource handle '@' decorators. Thanks Simon
|