inspect.Parameter.name

name The name of the parameter as a string. The name must be a valid Python identifier.

inspect.Parameter.kind

kind Describes how argument values are bound to the parameter. Possible values (accessible via Parameter, like Parameter.KEYWORD_ONLY): Name Meaning POSITIONAL_ONLY Value must be supplied as a positional argument. Python has no explicit syntax for defining positional-only parameters, but many built-in and extension module functions (especially those that accept only one or two parameters) accept them. POSITIONAL_OR_KEYWORD Value may be supplied as either a keyword or positional argument (t

inspect.Parameter.empty

empty A special class-level marker to specify absence of default values and annotations.

inspect.Parameter.default

default The default value for the parameter. If the parameter has no default value, this attribute is set to Parameter.empty.

inspect.Parameter.annotation

annotation The annotation for the parameter. If the parameter has no annotation, this attribute is set to Parameter.empty.

inspect.Parameter

class inspect.Parameter(name, kind, *, default=Parameter.empty, annotation=Parameter.empty) Parameter objects are immutable. Instead of modifying a Parameter object, you can use Parameter.replace() to create a modified copy. Changed in version 3.5: Parameter objects are picklable and hashable. empty A special class-level marker to specify absence of default values and annotations. name The name of the parameter as a string. The name must be a valid Python identifier. default

inspect.istraceback()

inspect.istraceback(object) Return true if the object is a traceback.

inspect.isroutine()

inspect.isroutine(object) Return true if the object is a user-defined or built-in function or method.

inspect.ismodule()

inspect.ismodule(object) Return true if the object is a module.

inspect.ismethoddescriptor()

inspect.ismethoddescriptor(object) Return true if the object is a method descriptor, but not if ismethod(), isclass(), isfunction() or isbuiltin() are true. This, for example, is true of int.__add__. An object passing this test has a __get__() method but not a __set__() method, but beyond that the set of attributes varies. A __name__ attribute is usually sensible, and __doc__ often is. Methods implemented via descriptors that also pass one of the other tests return false from the ismethoddes