iscode(objectreturns true if object is code object isdatadescriptor(objectreturns true if object is data descriptor object this is the case if object defines both _get_ (and _set_ (method isframe(objectreturns true if object is frame object isfunction(objectreturns true if object is function object isgenerator(objectreturns true if object is generator object isgeneratorfunction(objectreturns true if object is generator function this is different than isgenerator(in that it tests if object is function that creates generator when called it is not used to check if object is an actively running generator ismethod(objectreturns true if object is method ismethoddescriptor(objectreturns true if object is method descriptor object this is the case if object is not methodclassor function and it defines _get_ (method but does not define _set_ (ismodule(objectreturns true if object is module object isroutine(objectreturns true if object is user-defined or built-in function or method istraceback(objectreturns true if object is traceback object stack([context]returns list of frame records corresponding to the stack of the caller each frame record is -tuple (framefilenamelinefuncnamecontextlistindex)which contains the same information as returned by getinnerframes(context specifies the number of lines of source context to return in each frame record trace([context]returns list of frame records for the stack between the current frame and the frame in which the current exception was raised the first frame record is the callerand the last frame record is the frame where the exception occurred context specifies the number of lines of source context to return in each frame record lib fl ff