1 | 2 | 3  Next
All Samples(1806)  |  Call(1669)  |  Derive(0)  |  Import(137)
Return true if the object is a class.

Class objects provide these attributes:
    __doc__         documentation string
    __module__      name of module in which this class was defined

All Samples(1641)  |  Call(1482)  |  Derive(0)  |  Import(159)
Get the names and default values of a function's arguments.

A tuple of four things is returned: (args, varargs, varkw, defaults).
'args' is a list of the argument names (it may contain nested lists).
'varargs' and 'varkw' are the names of the * and ** arguments or None.
'defaults' is an n-tuple of the default values of the last n arguments.

All Samples(1294)  |  Call(1252)  |  Derive(0)  |  Import(42)
Return true if the object is a module.

Module objects provide these attributes:
    __doc__         documentation string
    __file__        filename (missing for built-in modules)

All Samples(1247)  |  Call(1235)  |  Derive(0)  |  Import(12)
Return the filename that can be used to locate an object's source.
Return None if no way can be identified to get the source.

All Samples(1198)  |  Call(1092)  |  Derive(0)  |  Import(106)
Return true if the object is a user-defined function.

Function objects provide these attributes:
    __doc__         documentation string
    __name__        name with which this function was defined
    func_code       code object containing compiled function bytecode
    func_defaults   tuple of any default values for arguments
    func_doc        (same as __doc__)
    func_globals    global namespace in which this function was defined
    func_name       (same as __name__)

All Samples(899)  |  Call(814)  |  Derive(0)  |  Import(85)
Return true if the object is an instance method.

Instance method objects provide these attributes:
    __doc__         documentation string
    __name__        name with which this method was defined
    im_class        class object in which this method belongs
    im_func         function object containing implementation of method
    im_self         instance to which this method is bound, or None

All Samples(804)  |  Call(773)  |  Derive(0)  |  Import(31)
Return the module an object was defined in, or None if not found.

All Samples(780)  |  Call(758)  |  Derive(0)  |  Import(22)
Return all members of an object as (name, value) pairs sorted by name.
Optionally, only return members that satisfy a given predicate.

All Samples(591)  |  Call(517)  |  Derive(0)  |  Import(74)
Get the documentation string for an object.

All tabs are expanded to spaces.  To clean up docstrings that are
indented to line up with blocks of code, any whitespace than can be
uniformly removed from the second line onwards is removed.

All Samples(416)  |  Call(406)  |  Derive(0)  |  Import(10)
Format an argument spec from the 4 values returned by getargspec.

The first four arguments are (args, varargs, varkw, defaults).  The
other four arguments are the corresponding optional formatting functions
that are called to turn names and values into strings.  The ninth
argument is an optional function to format the sequence of arguments.

All Samples(395)  |  Call(378)  |  Derive(0)  |  Import(17)
Return a list of records for the stack above the caller's frame.

All Samples(297)  |  Call(267)  |  Derive(0)  |  Import(30)
Return tuple of base classes (including cls) in method resolution order.

All Samples(287)  |  Call(263)  |  Derive(0)  |  Import(24)
Return the text of the source code for an object.

The argument may be a module, class, method, function, traceback, frame,
or code object.  The source code is returned as a single string.  An
IOError is raised if the source code cannot be retrieved.

All Samples(273)  |  Call(251)  |  Derive(0)  |  Import(22)
_getframe([depth]) -> frameobject

Return a frame object from the call stack.  If optional integer depth is
given, return the frame object that many calls below the top of the stack.
If that is deeper than the call stack, ValueError is raised.  The default
for depth is zero, returning the frame at the top of the call stack.

This function should be used for internal and specialized
purposes only.

All Samples(212)  |  Call(202)  |  Derive(0)  |  Import(10)
Return true if the object is any kind of function or method.

All Samples(205)  |  Call(199)  |  Derive(0)  |  Import(6)
Work out which source or compiled file an object was defined in.

All Samples(186)  |  Call(180)  |  Derive(0)  |  Import(6)
Return the module name for a given file, or None.

All Samples(169)  |  Call(151)  |  Derive(0)  |  Import(18)
Return true if the object is a built-in function or method.

Built-in functions and methods provide these attributes:
    __doc__         documentation string
    __name__        original name of this function or method
    __self__        instance to which a method is bound, or None

All Samples(152)  |  Call(149)  |  Derive(0)  |  Import(3)
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.

All Samples(151)  |  Call(133)  |  Derive(0)  |  Import(18)
Get information about a frame or traceback object.

A tuple of five things is returned: the filename, the line number of
the current line, the function name, a list of lines of context from
the source code, and the index of the current line within that list.
The optional second argument specifies the number of lines of context
to return, which are centered around the current line.

  1 | 2 | 3  Next