18.7.2 Function Descriptor Objects

The function descriptor objects used as values in the dictionary returned by readmodule_ex() provide the following data members:

module
The name of the module defining the function described by the function descriptor.

name
The name of the function.

file
Name of the file containing the def statement defining the function.

lineno
The line number of the def statement within the file named by file.
See About this document... for information on suggesting changes.