In [6]:
def print_introspection_info(obj):
print "inspect all public attributes of %s id(%s)" % (type(obj), id(obj))
for name in dir(obj):
if name.startswith('_'):
continue
value = getattr(obj, name)
valueType = type(value)
print "## %s | %s | %s ##" % (name, value, valueType)
help(value) # a bit fancier than just print value.__doc__
print "-" * 80
In [7]:
objs = [1, 1.0, 's', [], {}, tuple(), set()]
assert isinstance(objs, list)
for obj in objs:
print_introspection_info(obj)
print "#" * 80
inspect all public attributes of <type 'int'> id(30896504)
## bit_length | <built-in method bit_length of int object at 0x1d77178> | <type 'builtin_function_or_method'> ##
Help on built-in function bit_length:
bit_length(...)
int.bit_length() -> int
Number of bits necessary to represent self in binary.
>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
--------------------------------------------------------------------------------
## conjugate | <built-in method conjugate of int object at 0x1d77178> | <type 'builtin_function_or_method'> ##
Help on built-in function conjugate:
conjugate(...)
Returns self, the complex conjugate of any int.
--------------------------------------------------------------------------------
## denominator | 1 | <type 'int'> ##
Help on int object:
class int(object)
| int(x=0) -> int or long
| int(x, base=10) -> int or long
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is floating point, the conversion truncates towards zero.
| If x is outside the integer range, the function returns a long instead.
|
| If x is not a number or if base is given, then x must be a string or
| Unicode object representing an integer literal in the given base. The
| literal can be preceded by '+' or '-' and be surrounded by whitespace.
| The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
| interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Methods defined here:
|
| __abs__(...)
| x.__abs__() <==> abs(x)
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __and__(...)
| x.__and__(y) <==> x&y
|
| __cmp__(...)
| x.__cmp__(y) <==> cmp(x,y)
|
| __coerce__(...)
| x.__coerce__(y) <==> coerce(x, y)
|
| __div__(...)
| x.__div__(y) <==> x/y
|
| __divmod__(...)
| x.__divmod__(y) <==> divmod(x, y)
|
| __float__(...)
| x.__float__() <==> float(x)
|
| __floordiv__(...)
| x.__floordiv__(y) <==> x//y
|
| __format__(...)
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getnewargs__(...)
|
| __hash__(...)
| x.__hash__() <==> hash(x)
|
| __hex__(...)
| x.__hex__() <==> hex(x)
|
| __index__(...)
| x[y:z] <==> x[y.__index__():z.__index__()]
|
| __int__(...)
| x.__int__() <==> int(x)
|
| __invert__(...)
| x.__invert__() <==> ~x
|
| __long__(...)
| x.__long__() <==> long(x)
|
| __lshift__(...)
| x.__lshift__(y) <==> x<<y
|
| __mod__(...)
| x.__mod__(y) <==> x%y
|
| __mul__(...)
| x.__mul__(y) <==> x*y
|
| __neg__(...)
| x.__neg__() <==> -x
|
| __nonzero__(...)
| x.__nonzero__() <==> x != 0
|
| __oct__(...)
| x.__oct__() <==> oct(x)
|
| __or__(...)
| x.__or__(y) <==> x|y
|
| __pos__(...)
| x.__pos__() <==> +x
|
| __pow__(...)
| x.__pow__(y[, z]) <==> pow(x, y[, z])
|
| __radd__(...)
| x.__radd__(y) <==> y+x
|
| __rand__(...)
| x.__rand__(y) <==> y&x
|
| __rdiv__(...)
| x.__rdiv__(y) <==> y/x
|
| __rdivmod__(...)
| x.__rdivmod__(y) <==> divmod(y, x)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __rfloordiv__(...)
| x.__rfloordiv__(y) <==> y//x
|
| __rlshift__(...)
| x.__rlshift__(y) <==> y<<x
|
| __rmod__(...)
| x.__rmod__(y) <==> y%x
|
| __rmul__(...)
| x.__rmul__(y) <==> y*x
|
| __ror__(...)
| x.__ror__(y) <==> y|x
|
| __rpow__(...)
| y.__rpow__(x[, z]) <==> pow(x, y[, z])
|
| __rrshift__(...)
| x.__rrshift__(y) <==> y>>x
|
| __rshift__(...)
| x.__rshift__(y) <==> x>>y
|
| __rsub__(...)
| x.__rsub__(y) <==> y-x
|
| __rtruediv__(...)
| x.__rtruediv__(y) <==> y/x
|
| __rxor__(...)
| x.__rxor__(y) <==> y^x
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __sub__(...)
| x.__sub__(y) <==> x-y
|
| __truediv__(...)
| x.__truediv__(y) <==> x/y
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(...)
| x.__xor__(y) <==> x^y
|
| bit_length(...)
| int.bit_length() -> int
|
| Number of bits necessary to represent self in binary.
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
--------------------------------------------------------------------------------
## imag | 0 | <type 'int'> ##
Help on int object:
class int(object)
| int(x=0) -> int or long
| int(x, base=10) -> int or long
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is floating point, the conversion truncates towards zero.
| If x is outside the integer range, the function returns a long instead.
|
| If x is not a number or if base is given, then x must be a string or
| Unicode object representing an integer literal in the given base. The
| literal can be preceded by '+' or '-' and be surrounded by whitespace.
| The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
| interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Methods defined here:
|
| __abs__(...)
| x.__abs__() <==> abs(x)
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __and__(...)
| x.__and__(y) <==> x&y
|
| __cmp__(...)
| x.__cmp__(y) <==> cmp(x,y)
|
| __coerce__(...)
| x.__coerce__(y) <==> coerce(x, y)
|
| __div__(...)
| x.__div__(y) <==> x/y
|
| __divmod__(...)
| x.__divmod__(y) <==> divmod(x, y)
|
| __float__(...)
| x.__float__() <==> float(x)
|
| __floordiv__(...)
| x.__floordiv__(y) <==> x//y
|
| __format__(...)
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getnewargs__(...)
|
| __hash__(...)
| x.__hash__() <==> hash(x)
|
| __hex__(...)
| x.__hex__() <==> hex(x)
|
| __index__(...)
| x[y:z] <==> x[y.__index__():z.__index__()]
|
| __int__(...)
| x.__int__() <==> int(x)
|
| __invert__(...)
| x.__invert__() <==> ~x
|
| __long__(...)
| x.__long__() <==> long(x)
|
| __lshift__(...)
| x.__lshift__(y) <==> x<<y
|
| __mod__(...)
| x.__mod__(y) <==> x%y
|
| __mul__(...)
| x.__mul__(y) <==> x*y
|
| __neg__(...)
| x.__neg__() <==> -x
|
| __nonzero__(...)
| x.__nonzero__() <==> x != 0
|
| __oct__(...)
| x.__oct__() <==> oct(x)
|
| __or__(...)
| x.__or__(y) <==> x|y
|
| __pos__(...)
| x.__pos__() <==> +x
|
| __pow__(...)
| x.__pow__(y[, z]) <==> pow(x, y[, z])
|
| __radd__(...)
| x.__radd__(y) <==> y+x
|
| __rand__(...)
| x.__rand__(y) <==> y&x
|
| __rdiv__(...)
| x.__rdiv__(y) <==> y/x
|
| __rdivmod__(...)
| x.__rdivmod__(y) <==> divmod(y, x)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __rfloordiv__(...)
| x.__rfloordiv__(y) <==> y//x
|
| __rlshift__(...)
| x.__rlshift__(y) <==> y<<x
|
| __rmod__(...)
| x.__rmod__(y) <==> y%x
|
| __rmul__(...)
| x.__rmul__(y) <==> y*x
|
| __ror__(...)
| x.__ror__(y) <==> y|x
|
| __rpow__(...)
| y.__rpow__(x[, z]) <==> pow(x, y[, z])
|
| __rrshift__(...)
| x.__rrshift__(y) <==> y>>x
|
| __rshift__(...)
| x.__rshift__(y) <==> x>>y
|
| __rsub__(...)
| x.__rsub__(y) <==> y-x
|
| __rtruediv__(...)
| x.__rtruediv__(y) <==> y/x
|
| __rxor__(...)
| x.__rxor__(y) <==> y^x
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __sub__(...)
| x.__sub__(y) <==> x-y
|
| __truediv__(...)
| x.__truediv__(y) <==> x/y
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(...)
| x.__xor__(y) <==> x^y
|
| bit_length(...)
| int.bit_length() -> int
|
| Number of bits necessary to represent self in binary.
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
--------------------------------------------------------------------------------
## numerator | 1 | <type 'int'> ##
Help on int object:
class int(object)
| int(x=0) -> int or long
| int(x, base=10) -> int or long
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is floating point, the conversion truncates towards zero.
| If x is outside the integer range, the function returns a long instead.
|
| If x is not a number or if base is given, then x must be a string or
| Unicode object representing an integer literal in the given base. The
| literal can be preceded by '+' or '-' and be surrounded by whitespace.
| The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
| interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Methods defined here:
|
| __abs__(...)
| x.__abs__() <==> abs(x)
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __and__(...)
| x.__and__(y) <==> x&y
|
| __cmp__(...)
| x.__cmp__(y) <==> cmp(x,y)
|
| __coerce__(...)
| x.__coerce__(y) <==> coerce(x, y)
|
| __div__(...)
| x.__div__(y) <==> x/y
|
| __divmod__(...)
| x.__divmod__(y) <==> divmod(x, y)
|
| __float__(...)
| x.__float__() <==> float(x)
|
| __floordiv__(...)
| x.__floordiv__(y) <==> x//y
|
| __format__(...)
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getnewargs__(...)
|
| __hash__(...)
| x.__hash__() <==> hash(x)
|
| __hex__(...)
| x.__hex__() <==> hex(x)
|
| __index__(...)
| x[y:z] <==> x[y.__index__():z.__index__()]
|
| __int__(...)
| x.__int__() <==> int(x)
|
| __invert__(...)
| x.__invert__() <==> ~x
|
| __long__(...)
| x.__long__() <==> long(x)
|
| __lshift__(...)
| x.__lshift__(y) <==> x<<y
|
| __mod__(...)
| x.__mod__(y) <==> x%y
|
| __mul__(...)
| x.__mul__(y) <==> x*y
|
| __neg__(...)
| x.__neg__() <==> -x
|
| __nonzero__(...)
| x.__nonzero__() <==> x != 0
|
| __oct__(...)
| x.__oct__() <==> oct(x)
|
| __or__(...)
| x.__or__(y) <==> x|y
|
| __pos__(...)
| x.__pos__() <==> +x
|
| __pow__(...)
| x.__pow__(y[, z]) <==> pow(x, y[, z])
|
| __radd__(...)
| x.__radd__(y) <==> y+x
|
| __rand__(...)
| x.__rand__(y) <==> y&x
|
| __rdiv__(...)
| x.__rdiv__(y) <==> y/x
|
| __rdivmod__(...)
| x.__rdivmod__(y) <==> divmod(y, x)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __rfloordiv__(...)
| x.__rfloordiv__(y) <==> y//x
|
| __rlshift__(...)
| x.__rlshift__(y) <==> y<<x
|
| __rmod__(...)
| x.__rmod__(y) <==> y%x
|
| __rmul__(...)
| x.__rmul__(y) <==> y*x
|
| __ror__(...)
| x.__ror__(y) <==> y|x
|
| __rpow__(...)
| y.__rpow__(x[, z]) <==> pow(x, y[, z])
|
| __rrshift__(...)
| x.__rrshift__(y) <==> y>>x
|
| __rshift__(...)
| x.__rshift__(y) <==> x>>y
|
| __rsub__(...)
| x.__rsub__(y) <==> y-x
|
| __rtruediv__(...)
| x.__rtruediv__(y) <==> y/x
|
| __rxor__(...)
| x.__rxor__(y) <==> y^x
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __sub__(...)
| x.__sub__(y) <==> x-y
|
| __truediv__(...)
| x.__truediv__(y) <==> x/y
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(...)
| x.__xor__(y) <==> x^y
|
| bit_length(...)
| int.bit_length() -> int
|
| Number of bits necessary to represent self in binary.
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
--------------------------------------------------------------------------------
## real | 1 | <type 'int'> ##
Help on int object:
class int(object)
| int(x=0) -> int or long
| int(x, base=10) -> int or long
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is floating point, the conversion truncates towards zero.
| If x is outside the integer range, the function returns a long instead.
|
| If x is not a number or if base is given, then x must be a string or
| Unicode object representing an integer literal in the given base. The
| literal can be preceded by '+' or '-' and be surrounded by whitespace.
| The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
| interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| Methods defined here:
|
| __abs__(...)
| x.__abs__() <==> abs(x)
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __and__(...)
| x.__and__(y) <==> x&y
|
| __cmp__(...)
| x.__cmp__(y) <==> cmp(x,y)
|
| __coerce__(...)
| x.__coerce__(y) <==> coerce(x, y)
|
| __div__(...)
| x.__div__(y) <==> x/y
|
| __divmod__(...)
| x.__divmod__(y) <==> divmod(x, y)
|
| __float__(...)
| x.__float__() <==> float(x)
|
| __floordiv__(...)
| x.__floordiv__(y) <==> x//y
|
| __format__(...)
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getnewargs__(...)
|
| __hash__(...)
| x.__hash__() <==> hash(x)
|
| __hex__(...)
| x.__hex__() <==> hex(x)
|
| __index__(...)
| x[y:z] <==> x[y.__index__():z.__index__()]
|
| __int__(...)
| x.__int__() <==> int(x)
|
| __invert__(...)
| x.__invert__() <==> ~x
|
| __long__(...)
| x.__long__() <==> long(x)
|
| __lshift__(...)
| x.__lshift__(y) <==> x<<y
|
| __mod__(...)
| x.__mod__(y) <==> x%y
|
| __mul__(...)
| x.__mul__(y) <==> x*y
|
| __neg__(...)
| x.__neg__() <==> -x
|
| __nonzero__(...)
| x.__nonzero__() <==> x != 0
|
| __oct__(...)
| x.__oct__() <==> oct(x)
|
| __or__(...)
| x.__or__(y) <==> x|y
|
| __pos__(...)
| x.__pos__() <==> +x
|
| __pow__(...)
| x.__pow__(y[, z]) <==> pow(x, y[, z])
|
| __radd__(...)
| x.__radd__(y) <==> y+x
|
| __rand__(...)
| x.__rand__(y) <==> y&x
|
| __rdiv__(...)
| x.__rdiv__(y) <==> y/x
|
| __rdivmod__(...)
| x.__rdivmod__(y) <==> divmod(y, x)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __rfloordiv__(...)
| x.__rfloordiv__(y) <==> y//x
|
| __rlshift__(...)
| x.__rlshift__(y) <==> y<<x
|
| __rmod__(...)
| x.__rmod__(y) <==> y%x
|
| __rmul__(...)
| x.__rmul__(y) <==> y*x
|
| __ror__(...)
| x.__ror__(y) <==> y|x
|
| __rpow__(...)
| y.__rpow__(x[, z]) <==> pow(x, y[, z])
|
| __rrshift__(...)
| x.__rrshift__(y) <==> y>>x
|
| __rshift__(...)
| x.__rshift__(y) <==> x>>y
|
| __rsub__(...)
| x.__rsub__(y) <==> y-x
|
| __rtruediv__(...)
| x.__rtruediv__(y) <==> y/x
|
| __rxor__(...)
| x.__rxor__(y) <==> y^x
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __sub__(...)
| x.__sub__(y) <==> x-y
|
| __truediv__(...)
| x.__truediv__(y) <==> x/y
|
| __trunc__(...)
| Truncating an Integral returns itself.
|
| __xor__(...)
| x.__xor__(y) <==> x^y
|
| bit_length(...)
| int.bit_length() -> int
|
| Number of bits necessary to represent self in binary.
| >>> bin(37)
| '0b100101'
| >>> (37).bit_length()
| 6
|
| conjugate(...)
| Returns self, the complex conjugate of any int.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| denominator
| the denominator of a rational number in lowest terms
|
| imag
| the imaginary part of a complex number
|
| numerator
| the numerator of a rational number in lowest terms
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
--------------------------------------------------------------------------------
################################################################################
inspect all public attributes of <type 'float'> id(38003712)
## as_integer_ratio | <built-in method as_integer_ratio of float object at 0x243e400> | <type 'builtin_function_or_method'> ##
Help on built-in function as_integer_ratio:
as_integer_ratio(...)
float.as_integer_ratio() -> (int, int)
Return a pair of integers, whose ratio is exactly equal to the original
float and with a positive denominator.
Raise OverflowError on infinities and a ValueError on NaNs.
>>> (10.0).as_integer_ratio()
(10, 1)
>>> (0.0).as_integer_ratio()
(0, 1)
>>> (-.25).as_integer_ratio()
(-1, 4)
--------------------------------------------------------------------------------
## conjugate | <built-in method conjugate of float object at 0x243e400> | <type 'builtin_function_or_method'> ##
Help on built-in function conjugate:
conjugate(...)
Return self, the complex conjugate of any float.
--------------------------------------------------------------------------------
## fromhex | <built-in method fromhex of type object at 0x919460> | <type 'builtin_function_or_method'> ##
Help on built-in function fromhex:
fromhex(...)
float.fromhex(string) -> float
Create a floating-point number from a hexadecimal string.
>>> float.fromhex('0x1.ffffp10')
2047.984375
>>> float.fromhex('-0x1p-1074')
-4.9406564584124654e-324
--------------------------------------------------------------------------------
## hex | <built-in method hex of float object at 0x243e400> | <type 'builtin_function_or_method'> ##
Help on built-in function hex:
hex(...)
float.hex() -> string
Return a hexadecimal representation of a floating-point number.
>>> (-0.1).hex()
'-0x1.999999999999ap-4'
>>> 3.14159.hex()
'0x1.921f9f01b866ep+1'
--------------------------------------------------------------------------------
## imag | 0.0 | <type 'float'> ##
Help on float object:
class float(object)
| float(x) -> floating point number
|
| Convert a string or number to a floating point number, if possible.
|
| Methods defined here:
|
| __abs__(...)
| x.__abs__() <==> abs(x)
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __coerce__(...)
| x.__coerce__(y) <==> coerce(x, y)
|
| __div__(...)
| x.__div__(y) <==> x/y
|
| __divmod__(...)
| x.__divmod__(y) <==> divmod(x, y)
|
| __eq__(...)
| x.__eq__(y) <==> x==y
|
| __float__(...)
| x.__float__() <==> float(x)
|
| __floordiv__(...)
| x.__floordiv__(y) <==> x//y
|
| __format__(...)
| float.__format__(format_spec) -> string
|
| Formats the float according to format_spec.
|
| __ge__(...)
| x.__ge__(y) <==> x>=y
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getformat__(...)
| float.__getformat__(typestr) -> string
|
| You probably don't want to use this function. It exists mainly to be
| used in Python's test suite.
|
| typestr must be 'double' or 'float'. This function returns whichever of
| 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the
| format of floating point numbers used by the C type named by typestr.
|
| __getnewargs__(...)
|
| __gt__(...)
| x.__gt__(y) <==> x>y
|
| __hash__(...)
| x.__hash__() <==> hash(x)
|
| __int__(...)
| x.__int__() <==> int(x)
|
| __le__(...)
| x.__le__(y) <==> x<=y
|
| __long__(...)
| x.__long__() <==> long(x)
|
| __lt__(...)
| x.__lt__(y) <==> x<y
|
| __mod__(...)
| x.__mod__(y) <==> x%y
|
| __mul__(...)
| x.__mul__(y) <==> x*y
|
| __ne__(...)
| x.__ne__(y) <==> x!=y
|
| __neg__(...)
| x.__neg__() <==> -x
|
| __nonzero__(...)
| x.__nonzero__() <==> x != 0
|
| __pos__(...)
| x.__pos__() <==> +x
|
| __pow__(...)
| x.__pow__(y[, z]) <==> pow(x, y[, z])
|
| __radd__(...)
| x.__radd__(y) <==> y+x
|
| __rdiv__(...)
| x.__rdiv__(y) <==> y/x
|
| __rdivmod__(...)
| x.__rdivmod__(y) <==> divmod(y, x)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __rfloordiv__(...)
| x.__rfloordiv__(y) <==> y//x
|
| __rmod__(...)
| x.__rmod__(y) <==> y%x
|
| __rmul__(...)
| x.__rmul__(y) <==> y*x
|
| __rpow__(...)
| y.__rpow__(x[, z]) <==> pow(x, y[, z])
|
| __rsub__(...)
| x.__rsub__(y) <==> y-x
|
| __rtruediv__(...)
| x.__rtruediv__(y) <==> y/x
|
| __setformat__(...)
| float.__setformat__(typestr, fmt) -> None
|
| You probably don't want to use this function. It exists mainly to be
| used in Python's test suite.
|
| typestr must be 'double' or 'float'. fmt must be one of 'unknown',
| 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be
| one of the latter two if it appears to match the underlying C reality.
|
| Override the automatic determination of C-level floating point type.
| This affects how floats are converted to and from binary strings.
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __sub__(...)
| x.__sub__(y) <==> x-y
|
| __truediv__(...)
| x.__truediv__(y) <==> x/y
|
| __trunc__(...)
| Return the Integral closest to x between 0 and x.
|
| as_integer_ratio(...)
| float.as_integer_ratio() -> (int, int)
|
| Return a pair of integers, whose ratio is exactly equal to the original
| float and with a positive denominator.
| Raise OverflowError on infinities and a ValueError on NaNs.
|
| >>> (10.0).as_integer_ratio()
| (10, 1)
| >>> (0.0).as_integer_ratio()
| (0, 1)
| >>> (-.25).as_integer_ratio()
| (-1, 4)
|
| conjugate(...)
| Return self, the complex conjugate of any float.
|
| fromhex(...)
| float.fromhex(string) -> float
|
| Create a floating-point number from a hexadecimal string.
| >>> float.fromhex('0x1.ffffp10')
| 2047.984375
| >>> float.fromhex('-0x1p-1074')
| -4.9406564584124654e-324
|
| hex(...)
| float.hex() -> string
|
| Return a hexadecimal representation of a floating-point number.
| >>> (-0.1).hex()
| '-0x1.999999999999ap-4'
| >>> 3.14159.hex()
| '0x1.921f9f01b866ep+1'
|
| is_integer(...)
| Return True if the float is an integer.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| imag
| the imaginary part of a complex number
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
--------------------------------------------------------------------------------
## is_integer | <built-in method is_integer of float object at 0x243e400> | <type 'builtin_function_or_method'> ##
Help on built-in function is_integer:
is_integer(...)
Return True if the float is an integer.
--------------------------------------------------------------------------------
## real | 1.0 | <type 'float'> ##
Help on float object:
class float(object)
| float(x) -> floating point number
|
| Convert a string or number to a floating point number, if possible.
|
| Methods defined here:
|
| __abs__(...)
| x.__abs__() <==> abs(x)
|
| __add__(...)
| x.__add__(y) <==> x+y
|
| __coerce__(...)
| x.__coerce__(y) <==> coerce(x, y)
|
| __div__(...)
| x.__div__(y) <==> x/y
|
| __divmod__(...)
| x.__divmod__(y) <==> divmod(x, y)
|
| __eq__(...)
| x.__eq__(y) <==> x==y
|
| __float__(...)
| x.__float__() <==> float(x)
|
| __floordiv__(...)
| x.__floordiv__(y) <==> x//y
|
| __format__(...)
| float.__format__(format_spec) -> string
|
| Formats the float according to format_spec.
|
| __ge__(...)
| x.__ge__(y) <==> x>=y
|
| __getattribute__(...)
| x.__getattribute__('name') <==> x.name
|
| __getformat__(...)
| float.__getformat__(typestr) -> string
|
| You probably don't want to use this function. It exists mainly to be
| used in Python's test suite.
|
| typestr must be 'double' or 'float'. This function returns whichever of
| 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the
| format of floating point numbers used by the C type named by typestr.
|
| __getnewargs__(...)
|
| __gt__(...)
| x.__gt__(y) <==> x>y
|
| __hash__(...)
| x.__hash__() <==> hash(x)
|
| __int__(...)
| x.__int__() <==> int(x)
|
| __le__(...)
| x.__le__(y) <==> x<=y
|
| __long__(...)
| x.__long__() <==> long(x)
|
| __lt__(...)
| x.__lt__(y) <==> x<y
|
| __mod__(...)
| x.__mod__(y) <==> x%y
|
| __mul__(...)
| x.__mul__(y) <==> x*y
|
| __ne__(...)
| x.__ne__(y) <==> x!=y
|
| __neg__(...)
| x.__neg__() <==> -x
|
| __nonzero__(...)
| x.__nonzero__() <==> x != 0
|
| __pos__(...)
| x.__pos__() <==> +x
|
| __pow__(...)
| x.__pow__(y[, z]) <==> pow(x, y[, z])
|
| __radd__(...)
| x.__radd__(y) <==> y+x
|
| __rdiv__(...)
| x.__rdiv__(y) <==> y/x
|
| __rdivmod__(...)
| x.__rdivmod__(y) <==> divmod(y, x)
|
| __repr__(...)
| x.__repr__() <==> repr(x)
|
| __rfloordiv__(...)
| x.__rfloordiv__(y) <==> y//x
|
| __rmod__(...)
| x.__rmod__(y) <==> y%x
|
| __rmul__(...)
| x.__rmul__(y) <==> y*x
|
| __rpow__(...)
| y.__rpow__(x[, z]) <==> pow(x, y[, z])
|
| __rsub__(...)
| x.__rsub__(y) <==> y-x
|
| __rtruediv__(...)
| x.__rtruediv__(y) <==> y/x
|
| __setformat__(...)
| float.__setformat__(typestr, fmt) -> None
|
| You probably don't want to use this function. It exists mainly to be
| used in Python's test suite.
|
| typestr must be 'double' or 'float'. fmt must be one of 'unknown',
| 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be
| one of the latter two if it appears to match the underlying C reality.
|
| Override the automatic determination of C-level floating point type.
| This affects how floats are converted to and from binary strings.
|
| __str__(...)
| x.__str__() <==> str(x)
|
| __sub__(...)
| x.__sub__(y) <==> x-y
|
| __truediv__(...)
| x.__truediv__(y) <==> x/y
|
| __trunc__(...)
| Return the Integral closest to x between 0 and x.
|
| as_integer_ratio(...)
| float.as_integer_ratio() -> (int, int)
|
| Return a pair of integers, whose ratio is exactly equal to the original
| float and with a positive denominator.
| Raise OverflowError on infinities and a ValueError on NaNs.
|
| >>> (10.0).as_integer_ratio()
| (10, 1)
| >>> (0.0).as_integer_ratio()
| (0, 1)
| >>> (-.25).as_integer_ratio()
| (-1, 4)
|
| conjugate(...)
| Return self, the complex conjugate of any float.
|
| fromhex(...)
| float.fromhex(string) -> float
|
| Create a floating-point number from a hexadecimal string.
| >>> float.fromhex('0x1.ffffp10')
| 2047.984375
| >>> float.fromhex('-0x1p-1074')
| -4.9406564584124654e-324
|
| hex(...)
| float.hex() -> string
|
| Return a hexadecimal representation of a floating-point number.
| >>> (-0.1).hex()
| '-0x1.999999999999ap-4'
| >>> 3.14159.hex()
| '0x1.921f9f01b866ep+1'
|
| is_integer(...)
| Return True if the float is an integer.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| imag
| the imaginary part of a complex number
|
| real
| the real part of a complex number
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __new__ = <built-in method __new__ of type object>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
--------------------------------------------------------------------------------
################################################################################
inspect all public attributes of <type 'str'> id(139891107739488)
## capitalize | <built-in method capitalize of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function capitalize:
capitalize(...)
S.capitalize() -> string
Return a copy of the string S with only its first character
capitalized.
--------------------------------------------------------------------------------
## center | <built-in method center of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function center:
center(...)
S.center(width[, fillchar]) -> string
Return S centered in a string of length width. Padding is
done using the specified fill character (default is a space)
--------------------------------------------------------------------------------
## count | <built-in method count of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function count:
count(...)
S.count(sub[, start[, end]]) -> int
Return the number of non-overlapping occurrences of substring sub in
string S[start:end]. Optional arguments start and end are interpreted
as in slice notation.
--------------------------------------------------------------------------------
## decode | <built-in method decode of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function decode:
decode(...)
S.decode([encoding[,errors]]) -> object
Decodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a UnicodeDecodeError. Other possible values are 'ignore' and 'replace'
as well as any other name registered with codecs.register_error that is
able to handle UnicodeDecodeErrors.
--------------------------------------------------------------------------------
## encode | <built-in method encode of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function encode:
encode(...)
S.encode([encoding[,errors]]) -> object
Encodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is 'strict' meaning that encoding errors raise
a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and
'xmlcharrefreplace' as well as any other name registered with
codecs.register_error that is able to handle UnicodeEncodeErrors.
--------------------------------------------------------------------------------
## endswith | <built-in method endswith of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function endswith:
endswith(...)
S.endswith(suffix[, start[, end]]) -> bool
Return True if S ends with the specified suffix, False otherwise.
With optional start, test S beginning at that position.
With optional end, stop comparing S at that position.
suffix can also be a tuple of strings to try.
--------------------------------------------------------------------------------
## expandtabs | <built-in method expandtabs of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function expandtabs:
expandtabs(...)
S.expandtabs([tabsize]) -> string
Return a copy of S where all tab characters are expanded using spaces.
If tabsize is not given, a tab size of 8 characters is assumed.
--------------------------------------------------------------------------------
## find | <built-in method find of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function find:
find(...)
S.find(sub [,start [,end]]) -> int
Return the lowest index in S where substring sub is found,
such that sub is contained within S[start:end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
--------------------------------------------------------------------------------
## format | <built-in method format of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function format:
format(...)
S.format(*args, **kwargs) -> string
Return a formatted version of S, using substitutions from args and kwargs.
The substitutions are identified by braces ('{' and '}').
--------------------------------------------------------------------------------
## index | <built-in method index of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function index:
index(...)
S.index(sub [,start [,end]]) -> int
Like S.find() but raise ValueError when the substring is not found.
--------------------------------------------------------------------------------
## isalnum | <built-in method isalnum of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function isalnum:
isalnum(...)
S.isalnum() -> bool
Return True if all characters in S are alphanumeric
and there is at least one character in S, False otherwise.
--------------------------------------------------------------------------------
## isalpha | <built-in method isalpha of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function isalpha:
isalpha(...)
S.isalpha() -> bool
Return True if all characters in S are alphabetic
and there is at least one character in S, False otherwise.
--------------------------------------------------------------------------------
## isdigit | <built-in method isdigit of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function isdigit:
isdigit(...)
S.isdigit() -> bool
Return True if all characters in S are digits
and there is at least one character in S, False otherwise.
--------------------------------------------------------------------------------
## islower | <built-in method islower of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function islower:
islower(...)
S.islower() -> bool
Return True if all cased characters in S are lowercase and there is
at least one cased character in S, False otherwise.
--------------------------------------------------------------------------------
## isspace | <built-in method isspace of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function isspace:
isspace(...)
S.isspace() -> bool
Return True if all characters in S are whitespace
and there is at least one character in S, False otherwise.
--------------------------------------------------------------------------------
## istitle | <built-in method istitle of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function istitle:
istitle(...)
S.istitle() -> bool
Return True if S is a titlecased string and there is at least one
character in S, i.e. uppercase characters may only follow uncased
characters and lowercase characters only cased ones. Return False
otherwise.
--------------------------------------------------------------------------------
## isupper | <built-in method isupper of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function isupper:
isupper(...)
S.isupper() -> bool
Return True if all cased characters in S are uppercase and there is
at least one cased character in S, False otherwise.
--------------------------------------------------------------------------------
## join | <built-in method join of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function join:
join(...)
S.join(iterable) -> string
Return a string which is the concatenation of the strings in the
iterable. The separator between elements is S.
--------------------------------------------------------------------------------
## ljust | <built-in method ljust of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function ljust:
ljust(...)
S.ljust(width[, fillchar]) -> string
Return S left-justified in a string of length width. Padding is
done using the specified fill character (default is a space).
--------------------------------------------------------------------------------
## lower | <built-in method lower of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function lower:
lower(...)
S.lower() -> string
Return a copy of the string S converted to lowercase.
--------------------------------------------------------------------------------
## lstrip | <built-in method lstrip of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function lstrip:
lstrip(...)
S.lstrip([chars]) -> string or unicode
Return a copy of the string S with leading whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
--------------------------------------------------------------------------------
## partition | <built-in method partition of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function partition:
partition(...)
S.partition(sep) -> (head, sep, tail)
Search for the separator sep in S, and return the part before it,
the separator itself, and the part after it. If the separator is not
found, return S and two empty strings.
--------------------------------------------------------------------------------
## replace | <built-in method replace of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function replace:
replace(...)
S.replace(old, new[, count]) -> string
Return a copy of string S with all occurrences of substring
old replaced by new. If the optional argument count is
given, only the first count occurrences are replaced.
--------------------------------------------------------------------------------
## rfind | <built-in method rfind of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function rfind:
rfind(...)
S.rfind(sub [,start [,end]]) -> int
Return the highest index in S where substring sub is found,
such that sub is contained within S[start:end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
--------------------------------------------------------------------------------
## rindex | <built-in method rindex of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function rindex:
rindex(...)
S.rindex(sub [,start [,end]]) -> int
Like S.rfind() but raise ValueError when the substring is not found.
--------------------------------------------------------------------------------
## rjust | <built-in method rjust of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function rjust:
rjust(...)
S.rjust(width[, fillchar]) -> string
Return S right-justified in a string of length width. Padding is
done using the specified fill character (default is a space)
--------------------------------------------------------------------------------
## rpartition | <built-in method rpartition of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function rpartition:
rpartition(...)
S.rpartition(sep) -> (head, sep, tail)
Search for the separator sep in S, starting at the end of S, and return
the part before it, the separator itself, and the part after it. If the
separator is not found, return two empty strings and S.
--------------------------------------------------------------------------------
## rsplit | <built-in method rsplit of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function rsplit:
rsplit(...)
S.rsplit([sep [,maxsplit]]) -> list of strings
Return a list of the words in the string S, using sep as the
delimiter string, starting at the end of the string and working
to the front. If maxsplit is given, at most maxsplit splits are
done. If sep is not specified or is None, any whitespace string
is a separator.
--------------------------------------------------------------------------------
## rstrip | <built-in method rstrip of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function rstrip:
rstrip(...)
S.rstrip([chars]) -> string or unicode
Return a copy of the string S with trailing whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
--------------------------------------------------------------------------------
## split | <built-in method split of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function split:
split(...)
S.split([sep [,maxsplit]]) -> list of strings
Return a list of the words in the string S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or is None, any
whitespace string is a separator and empty strings are removed
from the result.
--------------------------------------------------------------------------------
## splitlines | <built-in method splitlines of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function splitlines:
splitlines(...)
S.splitlines(keepends=False) -> list of strings
Return a list of the lines in S, breaking at line boundaries.
Line breaks are not included in the resulting list unless keepends
is given and true.
--------------------------------------------------------------------------------
## startswith | <built-in method startswith of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function startswith:
startswith(...)
S.startswith(prefix[, start[, end]]) -> bool
Return True if S starts with the specified prefix, False otherwise.
With optional start, test S beginning at that position.
With optional end, stop comparing S at that position.
prefix can also be a tuple of strings to try.
--------------------------------------------------------------------------------
## strip | <built-in method strip of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function strip:
strip(...)
S.strip([chars]) -> string or unicode
Return a copy of the string S with leading and trailing
whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
--------------------------------------------------------------------------------
## swapcase | <built-in method swapcase of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function swapcase:
swapcase(...)
S.swapcase() -> string
Return a copy of the string S with uppercase characters
converted to lowercase and vice versa.
--------------------------------------------------------------------------------
## title | <built-in method title of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function title:
title(...)
S.title() -> string
Return a titlecased version of S, i.e. words start with uppercase
characters, all remaining cased characters have lowercase.
--------------------------------------------------------------------------------
## translate | <built-in method translate of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function translate:
translate(...)
S.translate(table [,deletechars]) -> string
Return a copy of the string S, where all characters occurring
in the optional argument deletechars are removed, and the
remaining characters have been mapped through the given
translation table, which must be a string of length 256 or None.
If the table argument is None, no translation is applied and
the operation simply removes the characters in deletechars.
--------------------------------------------------------------------------------
## upper | <built-in method upper of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function upper:
upper(...)
S.upper() -> string
Return a copy of the string S converted to uppercase.
--------------------------------------------------------------------------------
## zfill | <built-in method zfill of str object at 0x7f3aefc8b760> | <type 'builtin_function_or_method'> ##
Help on built-in function zfill:
zfill(...)
S.zfill(width) -> string
Pad a numeric string S with zeros on the left, to fill a field
of the specified width. The string S is never truncated.
--------------------------------------------------------------------------------
################################################################################
inspect all public attributes of <type 'list'> id(139890867079504)
## append | <built-in method append of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function append:
append(...)
L.append(object) -- append object to end
--------------------------------------------------------------------------------
## count | <built-in method count of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function count:
count(...)
L.count(value) -> integer -- return number of occurrences of value
--------------------------------------------------------------------------------
## extend | <built-in method extend of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function extend:
extend(...)
L.extend(iterable) -- extend list by appending elements from the iterable
--------------------------------------------------------------------------------
## index | <built-in method index of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function index:
index(...)
L.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
--------------------------------------------------------------------------------
## insert | <built-in method insert of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function insert:
insert(...)
L.insert(index, object) -- insert object before index
--------------------------------------------------------------------------------
## pop | <built-in method pop of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function pop:
pop(...)
L.pop([index]) -> item -- remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
--------------------------------------------------------------------------------
## remove | <built-in method remove of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function remove:
remove(...)
L.remove(value) -- remove first occurrence of value.
Raises ValueError if the value is not present.
--------------------------------------------------------------------------------
## reverse | <built-in method reverse of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function reverse:
reverse(...)
L.reverse() -- reverse *IN PLACE*
--------------------------------------------------------------------------------
## sort | <built-in method sort of list object at 0x7f3ae1708950> | <type 'builtin_function_or_method'> ##
Help on built-in function sort:
sort(...)
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;
cmp(x, y) -> -1, 0, 1
--------------------------------------------------------------------------------
################################################################################
inspect all public attributes of <type 'dict'> id(139890867113608)
## clear | <built-in method clear of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function clear:
clear(...)
D.clear() -> None. Remove all items from D.
--------------------------------------------------------------------------------
## copy | <built-in method copy of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function copy:
copy(...)
D.copy() -> a shallow copy of D
--------------------------------------------------------------------------------
## fromkeys | <built-in method fromkeys of type object at 0x918de0> | <type 'builtin_function_or_method'> ##
Help on built-in function fromkeys:
fromkeys(...)
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
--------------------------------------------------------------------------------
## get | <built-in method get of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function get:
get(...)
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
--------------------------------------------------------------------------------
## has_key | <built-in method has_key of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function has_key:
has_key(...)
D.has_key(k) -> True if D has a key k, else False
--------------------------------------------------------------------------------
## items | <built-in method items of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function items:
items(...)
D.items() -> list of D's (key, value) pairs, as 2-tuples
--------------------------------------------------------------------------------
## iteritems | <built-in method iteritems of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function iteritems:
iteritems(...)
D.iteritems() -> an iterator over the (key, value) items of D
--------------------------------------------------------------------------------
## iterkeys | <built-in method iterkeys of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function iterkeys:
iterkeys(...)
D.iterkeys() -> an iterator over the keys of D
--------------------------------------------------------------------------------
## itervalues | <built-in method itervalues of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function itervalues:
itervalues(...)
D.itervalues() -> an iterator over the values of D
--------------------------------------------------------------------------------
## keys | <built-in method keys of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function keys:
keys(...)
D.keys() -> list of D's keys
--------------------------------------------------------------------------------
## pop | <built-in method pop of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function pop:
pop(...)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised
--------------------------------------------------------------------------------
## popitem | <built-in method popitem of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function popitem:
popitem(...)
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
--------------------------------------------------------------------------------
## setdefault | <built-in method setdefault of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function setdefault:
setdefault(...)
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
--------------------------------------------------------------------------------
## update | <built-in method update of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function update:
update(...)
D.update([E, ]**F) -> None. Update D from dict/iterable E and F.
If E present and has a .keys() method, does: for k in E: D[k] = E[k]
If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v
In either case, this is followed by: for k in F: D[k] = F[k]
--------------------------------------------------------------------------------
## values | <built-in method values of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function values:
values(...)
D.values() -> list of D's values
--------------------------------------------------------------------------------
## viewitems | <built-in method viewitems of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function viewitems:
viewitems(...)
D.viewitems() -> a set-like object providing a view on D's items
--------------------------------------------------------------------------------
## viewkeys | <built-in method viewkeys of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function viewkeys:
viewkeys(...)
D.viewkeys() -> a set-like object providing a view on D's keys
--------------------------------------------------------------------------------
## viewvalues | <built-in method viewvalues of dict object at 0x7f3ae1710e88> | <type 'builtin_function_or_method'> ##
Help on built-in function viewvalues:
viewvalues(...)
D.viewvalues() -> an object providing a view on D's values
--------------------------------------------------------------------------------
################################################################################
inspect all public attributes of <type 'tuple'> id(139891107713104)
## count | <built-in method count of tuple object at 0x7f3aefc85050> | <type 'builtin_function_or_method'> ##
Help on built-in function count:
count(...)
T.count(value) -> integer -- return number of occurrences of value
--------------------------------------------------------------------------------
## index | <built-in method index of tuple object at 0x7f3aefc85050> | <type 'builtin_function_or_method'> ##
Help on built-in function index:
index(...)
T.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
--------------------------------------------------------------------------------
################################################################################
inspect all public attributes of <type 'set'> id(139891007106768)
## add | <built-in method add of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function add:
add(...)
Add an element to a set.
This has no effect if the element is already present.
--------------------------------------------------------------------------------
## clear | <built-in method clear of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function clear:
clear(...)
Remove all elements from this set.
--------------------------------------------------------------------------------
## copy | <built-in method copy of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function copy:
copy(...)
Return a shallow copy of a set.
--------------------------------------------------------------------------------
## difference | <built-in method difference of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function difference:
difference(...)
Return the difference of two or more sets as a new set.
(i.e. all elements that are in this set but not the others.)
--------------------------------------------------------------------------------
## difference_update | <built-in method difference_update of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function difference_update:
difference_update(...)
Remove all elements of another set from this set.
--------------------------------------------------------------------------------
## discard | <built-in method discard of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function discard:
discard(...)
Remove an element from a set if it is a member.
If the element is not a member, do nothing.
--------------------------------------------------------------------------------
## intersection | <built-in method intersection of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function intersection:
intersection(...)
Return the intersection of two or more sets as a new set.
(i.e. elements that are common to all of the sets.)
--------------------------------------------------------------------------------
## intersection_update | <built-in method intersection_update of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function intersection_update:
intersection_update(...)
Update a set with the intersection of itself and another.
--------------------------------------------------------------------------------
## isdisjoint | <built-in method isdisjoint of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function isdisjoint:
isdisjoint(...)
Return True if two sets have a null intersection.
--------------------------------------------------------------------------------
## issubset | <built-in method issubset of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function issubset:
issubset(...)
Report whether another set contains this set.
--------------------------------------------------------------------------------
## issuperset | <built-in method issuperset of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function issuperset:
issuperset(...)
Report whether this set contains another set.
--------------------------------------------------------------------------------
## pop | <built-in method pop of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function pop:
pop(...)
Remove and return an arbitrary set element.
Raises KeyError if the set is empty.
--------------------------------------------------------------------------------
## remove | <built-in method remove of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function remove:
remove(...)
Remove an element from a set; it must be a member.
If the element is not a member, raise a KeyError.
--------------------------------------------------------------------------------
## symmetric_difference | <built-in method symmetric_difference of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function symmetric_difference:
symmetric_difference(...)
Return the symmetric difference of two sets as a new set.
(i.e. all elements that are in exactly one of the sets.)
--------------------------------------------------------------------------------
## symmetric_difference_update | <built-in method symmetric_difference_update of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function symmetric_difference_update:
symmetric_difference_update(...)
Update a set with the symmetric difference of itself and another.
--------------------------------------------------------------------------------
## union | <built-in method union of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function union:
union(...)
Return the union of sets as a new set.
(i.e. all elements that are in either set.)
--------------------------------------------------------------------------------
## update | <built-in method update of set object at 0x7f3ae9c92ed0> | <type 'builtin_function_or_method'> ##
Help on built-in function update:
update(...)
Update a set with the union of itself and others.
--------------------------------------------------------------------------------
################################################################################
Content source: obestwalter/pet
Similar notebooks: