Home
last modified time | relevance | path

Searched refs:getsource (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Lib/test/
Dtest_zipimport_support.py91 self.assertEqual(inspect.getsource(zip_pkg.foo), test_src)
101 test_src = inspect.getsource(test_doctest)
113 src = inspect.getsource(mod)
Dtest_inspect.py377 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 …]
Dtest_zipimport.py666 self.assertEqual(inspect.getsource(module), test_src)
/third_party/python/Misc/NEWS.d/
D3.5.0b4.rst132 Fixed an issue that caused `inspect.getsource` to return incorrect results
237 Fix inspect.getsource() for 'async def' functions. Patch by Kai Groner.
D3.10.0rc1.rst326 Fixed wrong error being thrown by :func:`inspect.getsource` when examining a
D3.9.0a6.rst858 :meth:`inspect.getsource` now returns correct source code for inner class
D3.10.0a3.rst295 Fix handling of trailing comments by :func:`inspect.getsource`.
D3.5.0a1.rst311 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/
Dinspect.py1141 def getsource(object): function
3306 print(getsource(obj))
/third_party/python/Doc/library/
Dinspect.rst531 .. function:: getsource(object)
/third_party/python/Misc/
DHISTORY1097 - 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