1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next
All Samples(1236)  |  Call(879)  |  Derive(84)  |  Import(273)
module(name[, doc])

Create a module object.
The name must be a string; the optional doc argument can have any type.

All Samples(1105)  |  Call(1)  |  Derive(2)  |  Import(1102)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

All Samples(969)  |  Call(0)  |  Derive(8)  |  Import(961)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

All Samples(774)  |  Call(0)  |  Derive(0)  |  Import(774)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

All Samples(544)  |  Call(9)  |  Derive(3)  |  Import(532)
int(x[, base]) -> integer

Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.  If base is zero, the proper base is guessed based on the
string content.  If the argument is outside the integer range a
long object will be returned instead.

All Samples(481)  |  Call(174)  |  Derive(0)  |  Import(307)
instancemethod(function, instance, class)

Create an instance method object.

All Samples(413)  |  Call(87)  |  Derive(0)  |  Import(326)
classobj(name, bases, dict)

Create a class object.  The name must be a string; the second argument
a tuple of classes, and the third a dictionary.

All Samples(415)  |  Call(79)  |  Derive(0)  |  Import(336)
function(code, globals[, name[, argdefs[, closure]]])

Create a function object from a code object and a dictionary.
The optional name string overrides the name from the code object.
The optional argdefs tuple specifies the default argument values.
The optional closure tuple supplies the bindings for free variables.

All Samples(316)  |  Call(0)  |  Derive(5)  |  Import(311)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

All Samples(313)  |  Call(3)  |  Derive(1)  |  Import(309)
unicode(string [, encoding[, errors]]) -> object

Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding.
errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.

All Samples(259)  |  Call(0)  |  Derive(0)  |  Import(259)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

All Samples(212)  |  Call(3)  |  Derive(0)  |  Import(209)
instance(class[, dict])

Create an instance without calling its __init__() method.
The class must be a classic class.
If present, dict must be a dictionary or None.

All Samples(148)  |  Call(0)  |  Derive(0)  |  Import(148)
No Document.

All Samples(139)  |  Call(81)  |  Derive(0)  |  Import(58)
code(argcount, nlocals, stacksize, flags, codestring, constants, names,
      varnames, filename, name, firstlineno, lnotab[, freevars[, cellvars]])

Create a code object.  Not for the faint of heart.

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
No Document.

All Samples(130)  |  Call(1)  |  Derive(3)  |  Import(126)
long(x[, base]) -> integer

Convert a string or number to a long integer, if possible.  A floating
point argument will be truncated towards zero (this does not include a
string representation of a floating point number!)  When converting a
string, use the optional base.  It is an error to supply a base when
converting a non-string.

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
No Document.

All Samples(107)  |  Call(3)  |  Derive(4)  |  Import(100)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

All Samples(98)  |  Call(0)  |  Derive(0)  |  Import(98)
No Document.

All Samples(90)  |  Call(0)  |  Derive(0)  |  Import(90)
No Document.

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next