Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
corona10 marked this conversation as resolved.
normalizes the result as much as possible.

.. function:: getmembers(object[, predicate])

Return all the members of an object in a list of ``(name, value)``
Expand Down