diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index dfd78a97145c6f..637457085e32a9 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -242,6 +242,12 @@ attributes: Add ``cr_origin`` attribute to coroutines. +.. function:: getabsfile(object[, _filename]) + + Return an absolute path to the source or compiled file for an object. + The idea is for each object to have a unique origin, so this routine + normalizes the result as much as possible. + .. function:: getmembers(object[, predicate]) Return all the members of an object in a list of ``(name, value)``