python之旅2
python基础
1整数
查看整数类型的方法
>>> a = 1 >>> dir(a) ['__abs__', '__add__', '__and__', '__class__', '__cmp__', '__coerce__', '__delattr__', '__div__', '__divmod__', '__doc__', '__float__', '__floordiv__', '__format__', '__getattribute__', '__getnewargs__', '__ha sh__', '__hex__', '__index__', '__init__', '__int__', '__invert__', '__long__', '__lshift__', '__mod__', '__mul__', '__neg__', '__new__', '__nonzero__', '__oct__', '__or__', '__pos__', '__pow__', '__radd__', ' __rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rlshift__', '__rmod__', '__rmul__', '__ror__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', '__rtrue div__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__trunc__', '__xor__', 'bit_length', 'conjugate', 'denominator', 'imag', 'numerator', 'real'] >>> type(a) <type 'int'>
或者在pycharm里面,输入int,按住crtl,然后鼠标点击int查看其方法
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
"""
def bit_length(self): # real signature unknown; restored from __doc__
"""
int.bit_length() -> int
Number of bits necessary to represent self in binary.
>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
"""
return 0
def conjugate(self, *args, **kwargs): # real signature unknown
""" Returns self, the complex conjugate of any int. """
pass
def __abs__(self): # real signature unknown; restored from __doc__
""" x.__abs__() <==> abs(x) """
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __and__(self, y): # real signature unknown; restored from __doc__
""" x.__and__(y) <==> x&y """
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __coerce__(self, y): # real signature unknown; restored from __doc__
""" x.__coerce__(y) <==> coerce(x, y) """
pass
def __divmod__(self, y): # real signature unknown; restored from __doc__
""" x.__divmod__(y) <==> divmod(x, y) """
pass
def __div__(self, y): # real signature unknown; restored from __doc__
""" x.__div__(y) <==> x/y """
pass
def __float__(self): # real signature unknown; restored from __doc__
""" x.__float__() <==> float(x) """
pass
def __floordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__floordiv__(y) <==> x//y """
pass
def __format__(self, *args, **kwargs): # real signature unknown
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __hex__(self): # real signature unknown; restored from __doc__
""" x.__hex__() <==> hex(x) """
pass
def __index__(self): # real signature unknown; restored from __doc__
""" x[y:z] <==> x[y.__index__():z.__index__()] """
pass
def __init__(self, x, base=10): # known special case of int.__init__
"""
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
# (copied from class doc)
"""
pass
def __int__(self): # real signature unknown; restored from __doc__
""" x.__int__() <==> int(x) """
pass
def __invert__(self): # real signature unknown; restored from __doc__
""" x.__invert__() <==> ~x """
pass
def __long__(self): # real signature unknown; restored from __doc__
""" x.__long__() <==> long(x) """
pass
def __lshift__(self, y): # real signature unknown; restored from __doc__
""" x.__lshift__(y) <==> x<<y """
pass
def __mod__(self, y): # real signature unknown; restored from __doc__
""" x.__mod__(y) <==> x%y """
pass
def __mul__(self, y): # real signature unknown; restored from __doc__
""" x.__mul__(y) <==> x*y """
pass
def __neg__(self): # real signature unknown; restored from __doc__
""" x.__neg__() <==> -x """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __nonzero__(self): # real signature unknown; restored from __doc__
""" x.__nonzero__() <==> x != 0 """
pass
def __oct__(self): # real signature unknown; restored from __doc__
""" x.__oct__() <==> oct(x) """
pass
def __or__(self, y): # real signature unknown; restored from __doc__
""" x.__or__(y) <==> x|y """
pass
def __pos__(self): # real signature unknown; restored from __doc__
""" x.__pos__() <==> +x """
pass
def __pow__(self, y, z=None): # real signature unknown; restored from __doc__
""" x.__pow__(y[, z]) <==> pow(x, y[, z]) """
pass
def __radd__(self, y): # real signature unknown; restored from __doc__
""" x.__radd__(y) <==> y+x """
pass
def __rand__(self, y): # real signature unknown; restored from __doc__
""" x.__rand__(y) <==> y&x """
pass
def __rdivmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rdivmod__(y) <==> divmod(y, x) """
pass
def __rdiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rdiv__(y) <==> y/x """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rfloordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rfloordiv__(y) <==> y//x """
pass
def __rlshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rlshift__(y) <==> y<<x """
pass
def __rmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rmod__(y) <==> y%x """
pass
def __rmul__(self, y): # real signature unknown; restored from __doc__
""" x.__rmul__(y) <==> y*x """
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
""" x.__ror__(y) <==> y|x """
pass
def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__
""" y.__rpow__(x[, z]) <==> pow(x, y[, z]) """
pass
def __rrshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rrshift__(y) <==> y>>x """
pass
def __rshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rshift__(y) <==> x>>y """
pass
def __rsub__(self, y): # real signature unknown; restored from __doc__
""" x.__rsub__(y) <==> y-x """
pass
def __rtruediv__(self, y): # real signature unknown; restored from __doc__
""" x.__rtruediv__(y) <==> y/x """
pass
def __rxor__(self, y): # real signature unknown; restored from __doc__
""" x.__rxor__(y) <==> y^x """
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
def __sub__(self, y): # real signature unknown; restored from __doc__
""" x.__sub__(y) <==> x-y """
pass
def __truediv__(self, y): # real signature unknown; restored from __doc__
""" x.__truediv__(y) <==> x/y """
pass
def __trunc__(self, *args, **kwargs): # real signature unknown
""" Truncating an Integral returns itself. """
pass
def __xor__(self, y): # real signature unknown; restored from __doc__
""" x.__xor__(y) <==> x^y """
pass
denominator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the denominator of a rational number in lowest terms"""
imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the imaginary part of a complex number"""
numerator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the numerator of a rational number in lowest terms"""
real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the real part of a complex number"""
class bool(int):
"""
bool(x) -> bool
Returns True when the argument x is true, False otherwise.
The builtins True and False are the only two instances of the class bool.
The class bool is a subclass of the class int, and cannot be subclassed.
"""
def __and__(self, y): # real signature unknown; restored from __doc__
""" x.__and__(y) <==> x&y """
pass
def __init__(self, x): # real signature unknown; restored from __doc__
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __or__(self, y): # real signature unknown; restored from __doc__
""" x.__or__(y) <==> x|y """
pass
def __rand__(self, y): # real signature unknown; restored from __doc__
""" x.__rand__(y) <==> y&x """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
""" x.__ror__(y) <==> y|x """
pass
def __rxor__(self, y): # real signature unknown; restored from __doc__
""" x.__rxor__(y) <==> y^x """
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
def __xor__(self, y): # real signature unknown; restored from __doc__
""" x.__xor__(y) <==> x^y """
pass
class buffer(object):
"""
buffer(object [, offset[, size]])
Create a new buffer object which references the given object.
The buffer will reference a slice of the target object from the
start of the object (or at the specified offset). The slice will
extend to the end of the target object (or with the specified size).
"""
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __delitem__(self, y): # real signature unknown; restored from __doc__
""" x.__delitem__(y) <==> del x[y] """
pass
def __delslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__delslice__(i, j) <==> del x[i:j]
Use of negative indices is not supported.
"""
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __getslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
"""
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, p_object, offset=None, size=None): # real signature unknown; restored from __doc__
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __mul__(self, n): # real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rmul__(self, n): # real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
def __setitem__(self, i, y): # real signature unknown; restored from __doc__
""" x.__setitem__(i, y) <==> x[i]=y """
pass
def __setslice__(self, i, j, y): # real signature unknown; restored from __doc__
"""
x.__setslice__(i, j, y) <==> x[i:j]=y
Use of negative indices is not supported.
"""
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
class bytearray(object):
"""
bytearray(iterable_of_ints) -> bytearray.
bytearray(string, encoding[, errors]) -> bytearray.
bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray.
bytearray(memory_view) -> bytearray.
Construct an mutable bytearray object from:
- an iterable yielding integers in range(256)
- a text string encoded using the specified encoding
- a bytes or a bytearray object
- any object implementing the buffer API.
bytearray(int) -> bytearray.
Construct a zero-initialized bytearray of the given length.
"""
def append(self, p_int): # real signature unknown; restored from __doc__
"""
B.append(int) -> None
Append a single item to the end of B.
"""
pass
def capitalize(self): # real signature unknown; restored from __doc__
"""
B.capitalize() -> copy of B
Return a copy of B with only its first character capitalized (ASCII)
and the rest lower-cased.
"""
pass
def center(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
B.center(width[, fillchar]) -> copy of B
Return B centered in a string of length width. Padding is
done using the specified fill character (default is a space).
"""
pass
def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.count(sub [,start [,end]]) -> int
Return the number of non-overlapping occurrences of subsection sub in
bytes B[start:end]. Optional arguments start and end are interpreted
as in slice notation.
"""
return 0
def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__
"""
B.decode([encoding[, errors]]) -> unicode object.
Decodes B 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.
"""
return u""
def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.endswith(suffix [,start [,end]]) -> bool
Return True if B ends with the specified suffix, False otherwise.
With optional start, test B beginning at that position.
With optional end, stop comparing B at that position.
suffix can also be a tuple of strings to try.
"""
return False
def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__
"""
B.expandtabs([tabsize]) -> copy of B
Return a copy of B where all tab characters are expanded using spaces.
If tabsize is not given, a tab size of 8 characters is assumed.
"""
pass
def extend(self, iterable_int): # real signature unknown; restored from __doc__
"""
B.extend(iterable int) -> None
Append all the elements from the iterator or sequence to the
end of B.
"""
pass
def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.find(sub [,start [,end]]) -> int
Return the lowest index in B where subsection sub is found,
such that sub is contained within B[start,end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
"""
return 0
@classmethod # known case
def fromhex(cls, string): # real signature unknown; restored from __doc__
"""
bytearray.fromhex(string) -> bytearray
Create a bytearray object from a string of hexadecimal numbers.
Spaces between two numbers are accepted.
Example: bytearray.fromhex('B9 01EF') -> bytearray(b'\xb9\x01\xef').
"""
return bytearray
def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.index(sub [,start [,end]]) -> int
Like B.find() but raise ValueError when the subsection is not found.
"""
return 0
def insert(self, index, p_int): # real signature unknown; restored from __doc__
"""
B.insert(index, int) -> None
Insert a single item into the bytearray before the given index.
"""
pass
def isalnum(self): # real signature unknown; restored from __doc__
"""
B.isalnum() -> bool
Return True if all characters in B are alphanumeric
and there is at least one character in B, False otherwise.
"""
return False
def isalpha(self): # real signature unknown; restored from __doc__
"""
B.isalpha() -> bool
Return True if all characters in B are alphabetic
and there is at least one character in B, False otherwise.
"""
return False
def isdigit(self): # real signature unknown; restored from __doc__
"""
B.isdigit() -> bool
Return True if all characters in B are digits
and there is at least one character in B, False otherwise.
"""
return False
def islower(self): # real signature unknown; restored from __doc__
"""
B.islower() -> bool
Return True if all cased characters in B are lowercase and there is
at least one cased character in B, False otherwise.
"""
return False
def isspace(self): # real signature unknown; restored from __doc__
"""
B.isspace() -> bool
Return True if all characters in B are whitespace
and there is at least one character in B, False otherwise.
"""
return False
def istitle(self): # real signature unknown; restored from __doc__
"""
B.istitle() -> bool
Return True if B is a titlecased string and there is at least one
character in B, i.e. uppercase characters may only follow uncased
characters and lowercase characters only cased ones. Return False
otherwise.
"""
return False
def isupper(self): # real signature unknown; restored from __doc__
"""
B.isupper() -> bool
Return True if all cased characters in B are uppercase and there is
at least one cased character in B, False otherwise.
"""
return False
def join(self, iterable_of_bytes): # real signature unknown; restored from __doc__
"""
B.join(iterable_of_bytes) -> bytes
Concatenates any number of bytearray objects, with B in between each pair.
"""
return ""
def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
B.ljust(width[, fillchar]) -> copy of B
Return B left justified in a string of length width. Padding is
done using the specified fill character (default is a space).
"""
pass
def lower(self): # real signature unknown; restored from __doc__
"""
B.lower() -> copy of B
Return a copy of B with all ASCII characters converted to lowercase.
"""
pass
def lstrip(self, bytes=None): # real signature unknown; restored from __doc__
"""
B.lstrip([bytes]) -> bytearray
Strip leading bytes contained in the argument.
If the argument is omitted, strip leading ASCII whitespace.
"""
return bytearray
def partition(self, sep): # real signature unknown; restored from __doc__
"""
B.partition(sep) -> (head, sep, tail)
Searches for the separator sep in B, and returns the part before it,
the separator itself, and the part after it. If the separator is not
found, returns B and two empty bytearray objects.
"""
pass
def pop(self, index=None): # real signature unknown; restored from __doc__
"""
B.pop([index]) -> int
Remove and return a single item from B. If no index
argument is given, will pop the last value.
"""
return 0
def remove(self, p_int): # real signature unknown; restored from __doc__
"""
B.remove(int) -> None
Remove the first occurance of a value in B.
"""
pass
def replace(self, old, new, count=None): # real signature unknown; restored from __doc__
"""
B.replace(old, new[, count]) -> bytes
Return a copy of B with all occurrences of subsection
old replaced by new. If the optional argument count is
given, only the first count occurrences are replaced.
"""
return ""
def reverse(self): # real signature unknown; restored from __doc__
"""
B.reverse() -> None
Reverse the order of the values in B in place.
"""
pass
def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.rfind(sub [,start [,end]]) -> int
Return the highest index in B where subsection sub is found,
such that sub is contained within B[start,end]. Optional
arguments start and end are interpreted as in slice notation.
Return -1 on failure.
"""
return 0
def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.rindex(sub [,start [,end]]) -> int
Like B.rfind() but raise ValueError when the subsection is not found.
"""
return 0
def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
B.rjust(width[, fillchar]) -> copy of B
Return B right justified in a string of length width. Padding is
done using the specified fill character (default is a space)
"""
pass
def rpartition(self, sep): # real signature unknown; restored from __doc__
"""
B.rpartition(sep) -> (head, sep, tail)
Searches for the separator sep in B, starting at the end of B,
and returns the part before it, the separator itself, and the
part after it. If the separator is not found, returns two empty
bytearray objects and B.
"""
pass
def rsplit(self, sep, maxsplit=None): # real signature unknown; restored from __doc__
"""
B.rsplit(sep[, maxsplit]) -> list of bytearray
Return a list of the sections in B, using sep as the delimiter,
starting at the end of B and working to the front.
If sep is not given, B is split on ASCII whitespace characters
(space, tab, return, newline, formfeed, vertical tab).
If maxsplit is given, at most maxsplit splits are done.
"""
return []
def rstrip(self, bytes=None): # real signature unknown; restored from __doc__
"""
B.rstrip([bytes]) -> bytearray
Strip trailing bytes contained in the argument.
If the argument is omitted, strip trailing ASCII whitespace.
"""
return bytearray
def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__
"""
B.split([sep[, maxsplit]]) -> list of bytearray
Return a list of the sections in B, using sep as the delimiter.
If sep is not given, B is split on ASCII whitespace characters
(space, tab, return, newline, formfeed, vertical tab).
If maxsplit is given, at most maxsplit splits are done.
"""
return []
def splitlines(self, keepends=False): # real signature unknown; restored from __doc__
"""
B.splitlines(keepends=False) -> list of lines
Return a list of the lines in B, breaking at line boundaries.
Line breaks are not included in the resulting list unless keepends
is given and true.
"""
return []
def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
"""
B.startswith(prefix [,start [,end]]) -> bool
Return True if B starts with the specified prefix, False otherwise.
With optional start, test B beginning at that position.
With optional end, stop comparing B at that position.
prefix can also be a tuple of strings to try.
"""
return False
def strip(self, bytes=None): # real signature unknown; restored from __doc__
"""
B.strip([bytes]) -> bytearray
Strip leading and trailing bytes contained in the argument.
If the argument is omitted, strip ASCII whitespace.
"""
return bytearray
def swapcase(self): # real signature unknown; restored from __doc__
"""
B.swapcase() -> copy of B
Return a copy of B with uppercase ASCII characters converted
to lowercase ASCII and vice versa.
"""
pass
def title(self): # real signature unknown; restored from __doc__
"""
B.title() -> copy of B
Return a titlecased version of B, i.e. ASCII words start with uppercase
characters, all remaining cased characters have lowercase.
"""
pass
def translate(self, table, deletechars=None): # real signature unknown; restored from __doc__
"""
B.translate(table[, deletechars]) -> bytearray
Return a copy of B, 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 bytes object of length 256.
"""
return bytearray
def upper(self): # real signature unknown; restored from __doc__
"""
B.upper() -> copy of B
Return a copy of B with all ASCII characters converted to uppercase.
"""
pass
def zfill(self, width): # real signature unknown; restored from __doc__
"""
B.zfill(width) -> copy of B
Pad a numeric string B with zeros on the left, to fill a field
of the specified width. B is never truncated.
"""
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __alloc__(self): # real signature unknown; restored from __doc__
"""
B.__alloc__() -> int
Returns the number of bytes actually allocated.
"""
return 0
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x """
pass
def __delitem__(self, y): # real signature unknown; restored from __doc__
""" x.__delitem__(y) <==> del x[y] """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __iadd__(self, y): # real signature unknown; restored from __doc__
""" x.__iadd__(y) <==> x+=y """
pass
def __imul__(self, y): # real signature unknown; restored from __doc__
""" x.__imul__(y) <==> x*=y """
pass
def __init__(self, source=None, encoding=None, errors='strict'): # known special case of bytearray.__init__
"""
bytearray(iterable_of_ints) -> bytearray.
bytearray(string, encoding[, errors]) -> bytearray.
bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray.
bytearray(memory_view) -> bytearray.
Construct an mutable bytearray object from:
- an iterable yielding integers in range(256)
- a text string encoded using the specified encoding
- a bytes or a bytearray object
- any object implementing the buffer API.
bytearray(int) -> bytearray.
Construct a zero-initialized bytearray of the given length.
# (copied from class doc)
"""
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mul__(self, n): # real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
""" Return state information for pickling. """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rmul__(self, n): # real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
def __setitem__(self, i, y): # real signature unknown; restored from __doc__
""" x.__setitem__(i, y) <==> x[i]=y """
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
"""
B.__sizeof__() -> int
Returns the size of B in memory, in bytes
"""
return 0
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
class str(basestring):
"""
str(object='') -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
"""
def capitalize(self): # real signature unknown; restored from __doc__
"""
S.capitalize() -> string
Return a copy of the string S with only its first character
capitalized.
"""
return ""
def center(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
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)
"""
return ""
def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return 0
def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__
"""
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.
"""
return object()
def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__
"""
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.
"""
return object()
def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__
"""
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.
"""
return ""
def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return 0
def format(*args, **kwargs): # known special case of str.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 '}').
"""
pass
def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.index(sub [,start [,end]]) -> int
Like S.find() but raise ValueError when the substring is not found.
"""
return 0
def isalnum(self): # real signature unknown; restored from __doc__
"""
S.isalnum() -> bool
Return True if all characters in S are alphanumeric
and there is at least one character in S, False otherwise.
"""
return False
def isalpha(self): # real signature unknown; restored from __doc__
"""
S.isalpha() -> bool
Return True if all characters in S are alphabetic
and there is at least one character in S, False otherwise.
"""
return False
def isdigit(self): # real signature unknown; restored from __doc__
"""
S.isdigit() -> bool
Return True if all characters in S are digits
and there is at least one character in S, False otherwise.
"""
return False
def islower(self): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def isspace(self): # real signature unknown; restored from __doc__
"""
S.isspace() -> bool
Return True if all characters in S are whitespace
and there is at least one character in S, False otherwise.
"""
return False
def istitle(self): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def isupper(self): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def join(self, iterable): # real signature unknown; restored from __doc__
"""
S.join(iterable) -> string
Return a string which is the concatenation of the strings in the
iterable. The separator between elements is S.
"""
return ""
def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
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).
"""
return ""
def lower(self): # real signature unknown; restored from __doc__
"""
S.lower() -> string
Return a copy of the string S converted to lowercase.
"""
return ""
def lstrip(self, chars=None): # real signature unknown; restored from __doc__
"""
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
"""
return ""
def partition(self, sep): # real signature unknown; restored from __doc__
"""
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.
"""
pass
def replace(self, old, new, count=None): # real signature unknown; restored from __doc__
"""
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.
"""
return ""
def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return 0
def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.rindex(sub [,start [,end]]) -> int
Like S.rfind() but raise ValueError when the substring is not found.
"""
return 0
def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
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)
"""
return ""
def rpartition(self, sep): # real signature unknown; restored from __doc__
"""
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.
"""
pass
def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__
"""
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.
"""
return []
def rstrip(self, chars=None): # real signature unknown; restored from __doc__
"""
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
"""
return ""
def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__
"""
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.
"""
return []
def splitlines(self, keepends=False): # real signature unknown; restored from __doc__
"""
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.
"""
return []
def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def strip(self, chars=None): # real signature unknown; restored from __doc__
"""
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
"""
return ""
def swapcase(self): # real signature unknown; restored from __doc__
"""
S.swapcase() -> string
Return a copy of the string S with uppercase characters
converted to lowercase and vice versa.
"""
return ""
def title(self): # real signature unknown; restored from __doc__
"""
S.title() -> string
Return a titlecased version of S, i.e. words start with uppercase
characters, all remaining cased characters have lowercase.
"""
return ""
def translate(self, table, deletechars=None): # real signature unknown; restored from __doc__
"""
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.
"""
return ""
def upper(self): # real signature unknown; restored from __doc__
"""
S.upper() -> string
Return a copy of the string S converted to uppercase.
"""
return ""
def zfill(self, width): # real signature unknown; restored from __doc__
"""
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.
"""
return ""
def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown
pass
def _formatter_parser(self, *args, **kwargs): # real signature unknown
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __format__(self, format_spec): # real signature unknown; restored from __doc__
"""
S.__format__(format_spec) -> string
Return a formatted version of S as described by format_spec.
"""
return ""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __getslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
"""
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, string=''): # known special case of str.__init__
"""
str(object='') -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
# (copied from class doc)
"""
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mod__(self, y): # real signature unknown; restored from __doc__
""" x.__mod__(y) <==> x%y """
pass
def __mul__(self, n): # real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rmod__(y) <==> y%x """
pass
def __rmul__(self, n): # real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
""" S.__sizeof__() -> size of S in memory, in bytes """
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
bytes = str
class classmethod(object):
"""
classmethod(function) -> method
Convert a function to be a class method.
A class method receives the class as implicit first argument,
just like an instance method receives the instance.
To declare a class method, use this idiom:
class C:
def f(cls, arg1, arg2, ...): ...
f = classmethod(f)
It can be called either on the class (e.g. C.f()) or on an instance
(e.g. C().f()). The instance is ignored except for its class.
If a class method is called for a derived class, the derived class
object is passed as the implied first argument.
Class methods are different than C++ or Java static methods.
If you want those, see the staticmethod builtin.
"""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __get__(self, obj, type=None): # real signature unknown; restored from __doc__
""" descr.__get__(obj[, type]) -> value """
pass
def __init__(self, function): # real signature unknown; restored from __doc__
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
__func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
class complex(object):
"""
complex(real[, imag]) -> complex number
Create a complex number from a real part and an optional imaginary part.
This is equivalent to (real + imag*1j) where imag defaults to 0.
"""
def conjugate(self): # real signature unknown; restored from __doc__
"""
complex.conjugate() -> complex
Return the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.
"""
return complex
def __abs__(self): # real signature unknown; restored from __doc__
""" x.__abs__() <==> abs(x) """
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __coerce__(self, y): # real signature unknown; restored from __doc__
""" x.__coerce__(y) <==> coerce(x, y) """
pass
def __divmod__(self, y): # real signature unknown; restored from __doc__
""" x.__divmod__(y) <==> divmod(x, y) """
pass
def __div__(self, y): # real signature unknown; restored from __doc__
""" x.__div__(y) <==> x/y """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __float__(self): # real signature unknown; restored from __doc__
""" x.__float__() <==> float(x) """
pass
def __floordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__floordiv__(y) <==> x//y """
pass
def __format__(self): # real signature unknown; restored from __doc__
"""
complex.__format__() -> str
Convert to a string according to format_spec.
"""
return ""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, real, imag=None): # real signature unknown; restored from __doc__
pass
def __int__(self): # real signature unknown; restored from __doc__
""" x.__int__() <==> int(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __long__(self): # real signature unknown; restored from __doc__
""" x.__long__() <==> long(x) """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mod__(self, y): # real signature unknown; restored from __doc__
""" x.__mod__(y) <==> x%y """
pass
def __mul__(self, y): # real signature unknown; restored from __doc__
""" x.__mul__(y) <==> x*y """
pass
def __neg__(self): # real signature unknown; restored from __doc__
""" x.__neg__() <==> -x """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __nonzero__(self): # real signature unknown; restored from __doc__
""" x.__nonzero__() <==> x != 0 """
pass
def __pos__(self): # real signature unknown; restored from __doc__
""" x.__pos__() <==> +x """
pass
def __pow__(self, y, z=None): # real signature unknown; restored from __doc__
""" x.__pow__(y[, z]) <==> pow(x, y[, z]) """
pass
def __radd__(self, y): # real signature unknown; restored from __doc__
""" x.__radd__(y) <==> y+x """
pass
def __rdivmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rdivmod__(y) <==> divmod(y, x) """
pass
def __rdiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rdiv__(y) <==> y/x """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rfloordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rfloordiv__(y) <==> y//x """
pass
def __rmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rmod__(y) <==> y%x """
pass
def __rmul__(self, y): # real signature unknown; restored from __doc__
""" x.__rmul__(y) <==> y*x """
pass
def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__
""" y.__rpow__(x[, z]) <==> pow(x, y[, z]) """
pass
def __rsub__(self, y): # real signature unknown; restored from __doc__
""" x.__rsub__(y) <==> y-x """
pass
def __rtruediv__(self, y): # real signature unknown; restored from __doc__
""" x.__rtruediv__(y) <==> y/x """
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
def __sub__(self, y): # real signature unknown; restored from __doc__
""" x.__sub__(y) <==> x-y """
pass
def __truediv__(self, y): # real signature unknown; restored from __doc__
""" x.__truediv__(y) <==> x/y """
pass
imag = property(lambda self: 0.0)
"""the imaginary part of a complex number
:type: float
"""
real = property(lambda self: 0.0)
"""the real part of a complex number
:type: float
"""
class dict(object):
"""
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)
"""
def clear(self): # real signature unknown; restored from __doc__
""" D.clear() -> None. Remove all items from D. """
pass
def copy(self): # real signature unknown; restored from __doc__
""" D.copy() -> a shallow copy of D """
pass
@staticmethod # known case
def fromkeys(S, v=None): # real signature unknown; restored from __doc__
"""
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v.
v defaults to None.
"""
pass
def get(self, k, d=None): # real signature unknown; restored from __doc__
""" D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. """
pass
def has_key(self, k): # real signature unknown; restored from __doc__
""" D.has_key(k) -> True if D has a key k, else False """
return False
def items(self): # real signature unknown; restored from __doc__
""" D.items() -> list of D's (key, value) pairs, as 2-tuples """
return []
def iteritems(self): # real signature unknown; restored from __doc__
""" D.iteritems() -> an iterator over the (key, value) items of D """
pass
def iterkeys(self): # real signature unknown; restored from __doc__
""" D.iterkeys() -> an iterator over the keys of D """
pass
def itervalues(self): # real signature unknown; restored from __doc__
""" D.itervalues() -> an iterator over the values of D """
pass
def keys(self): # real signature unknown; restored from __doc__
""" D.keys() -> list of D's keys """
return []
def pop(self, k, d=None): # real signature unknown; restored from __doc__
"""
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
"""
pass
def popitem(self): # real signature unknown; restored from __doc__
"""
D.popitem() -> (k, v), remove and return some (key, value) pair as a
2-tuple; but raise KeyError if D is empty.
"""
pass
def setdefault(self, k, d=None): # real signature unknown; restored from __doc__
""" D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D """
pass
def update(self, E=None, **F): # known special case of dict.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]
"""
pass
def values(self): # real signature unknown; restored from __doc__
""" D.values() -> list of D's values """
return []
def viewitems(self): # real signature unknown; restored from __doc__
""" D.viewitems() -> a set-like object providing a view on D's items """
pass
def viewkeys(self): # real signature unknown; restored from __doc__
""" D.viewkeys() -> a set-like object providing a view on D's keys """
pass
def viewvalues(self): # real signature unknown; restored from __doc__
""" D.viewvalues() -> an object providing a view on D's values """
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __contains__(self, k): # real signature unknown; restored from __doc__
""" D.__contains__(k) -> True if D has a key k, else False """
return False
def __delitem__(self, y): # real signature unknown; restored from __doc__
""" x.__delitem__(y) <==> del x[y] """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __init__(self, seq=None, **kwargs): # known special case of dict.__init__
"""
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)
# (copied from class doc)
"""
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __setitem__(self, i, y): # real signature unknown; restored from __doc__
""" x.__setitem__(i, y) <==> x[i]=y """
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
""" D.__sizeof__() -> size of D in memory, in bytes """
pass
__hash__ = None
class enumerate(object):
"""
enumerate(iterable[, start]) -> iterator for index, value of iterable
Return an enumerate object. iterable must be another object that supports
iteration. The enumerate object yields pairs containing a count (from
start, which defaults to zero) and a value yielded by the iterable argument.
enumerate is useful for obtaining an indexed list:
(0, seq[0]), (1, seq[1]), (2, seq[2]), ...
"""
def next(self): # real signature unknown; restored from __doc__
""" x.next() -> the next value, or raise StopIteration """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __init__(self, iterable, start=0): # known special case of enumerate.__init__
""" x.__init__(...) initializes x; see help(type(x)) for signature """
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
class file(object):
"""
file(name[, mode[, buffering]]) -> file object
Open a file. The mode can be 'r', 'w' or 'a' for reading (default),
writing or appending. The file will be created if it doesn't exist
when opened for writing or appending; it will be truncated when
opened for writing. Add a 'b' to the mode for binary files.
Add a '+' to the mode to allow simultaneous reading and writing.
If the buffering argument is given, 0 means unbuffered, 1 means line
buffered, and larger numbers specify the buffer size. The preferred way
to open a file is with the builtin open() function.
Add a 'U' to mode to open the file for input with universal newline
support. Any line ending in the input file will be seen as a '\n'
in Python. Also, a file so opened gains the attribute 'newlines';
the value for this attribute is one of None (no newline read yet),
'\r', '\n', '\r\n' or a tuple containing all the newline types seen.
'U' cannot be combined with 'w' or '+' mode.
"""
def close(self): # real signature unknown; restored from __doc__
"""
close() -> None or (perhaps) an integer. Close the file.
Sets data attribute .closed to True. A closed file cannot be used for
further I/O operations. close() may be called more than once without
error. Some kinds of file objects (for example, opened by popen())
may return an exit status upon closing.
"""
pass
def fileno(self): # real signature unknown; restored from __doc__
"""
fileno() -> integer "file descriptor".
This is needed for lower-level file interfaces, such os.read().
"""
return 0
def flush(self): # real signature unknown; restored from __doc__
""" flush() -> None. Flush the internal I/O buffer. """
pass
def isatty(self): # real signature unknown; restored from __doc__
""" isatty() -> true or false. True if the file is connected to a tty device. """
return False
def next(self): # real signature unknown; restored from __doc__
""" x.next() -> the next value, or raise StopIteration """
pass
def read(self, size=None): # real signature unknown; restored from __doc__
"""
read([size]) -> read at most size bytes, returned as a string.
If the size argument is negative or omitted, read until EOF is reached.
Notice that when in non-blocking mode, less data than what was requested
may be returned, even if no size parameter was given.
"""
pass
def readinto(self): # real signature unknown; restored from __doc__
""" readinto() -> Undocumented. Don't use this; it may go away. """
pass
def readline(self, size=None): # real signature unknown; restored from __doc__
"""
readline([size]) -> next line from the file, as a string.
Retain newline. A non-negative size argument limits the maximum
number of bytes to return (an incomplete line may be returned then).
Return an empty string at EOF.
"""
pass
def readlines(self, size=None): # real signature unknown; restored from __doc__
"""
readlines([size]) -> list of strings, each a line from the file.
Call readline() repeatedly and return a list of the lines so read.
The optional size argument, if given, is an approximate bound on the
total number of bytes in the lines returned.
"""
return []
def seek(self, offset, whence=None): # real signature unknown; restored from __doc__
"""
seek(offset[, whence]) -> None. Move to new file position.
Argument offset is a byte count. Optional argument whence defaults to
0 (offset from start of file, offset should be >= 0); other values are 1
(move relative to current position, positive or negative), and 2 (move
relative to end of file, usually negative, although many platforms allow
seeking beyond the end of a file). If the file is opened in text mode,
only offsets returned by tell() are legal. Use of other offsets causes
undefined behavior.
Note that not all file objects are seekable.
"""
pass
def tell(self): # real signature unknown; restored from __doc__
""" tell() -> current file position, an integer (may be a long integer). """
pass
def truncate(self, size=None): # real signature unknown; restored from __doc__
"""
truncate([size]) -> None. Truncate the file to at most size bytes.
Size defaults to the current file position, as returned by tell().
"""
pass
def write(self, p_str): # real signature unknown; restored from __doc__
"""
write(str) -> None. Write string str to file.
Note that due to buffering, flush() or close() may be needed before
the file on disk reflects the data written.
"""
pass
def writelines(self, sequence_of_strings): # real signature unknown; restored from __doc__
"""
writelines(sequence_of_strings) -> None. Write the strings to the file.
Note that newlines are not added. The sequence can be any iterable object
producing strings. This is equivalent to calling write() for each string.
"""
pass
def xreadlines(self): # real signature unknown; restored from __doc__
"""
xreadlines() -> returns self.
For backward compatibility. File objects now include the performance
optimizations previously implemented in the xreadlines module.
"""
pass
def __delattr__(self, name): # real signature unknown; restored from __doc__
""" x.__delattr__('name') <==> del x.name """
pass
def __enter__(self): # real signature unknown; restored from __doc__
""" __enter__() -> self. """
return self
def __exit__(self, *excinfo): # real signature unknown; restored from __doc__
""" __exit__(*excinfo) -> None. Closes the file. """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __init__(self, name, mode=None, buffering=None): # real signature unknown; restored from __doc__
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __setattr__(self, name, value): # real signature unknown; restored from __doc__
""" x.__setattr__('name', value) <==> x.name = value """
pass
closed = property(lambda self: True)
"""True if the file is closed
:type: bool
"""
encoding = property(lambda self: '')
"""file encoding
:type: string
"""
errors = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Unicode error handler"""
mode = property(lambda self: '')
"""file mode ('r', 'U', 'w', 'a', possibly with 'b' or '+' added)
:type: string
"""
name = property(lambda self: '')
"""file name
:type: string
"""
newlines = property(lambda self: '')
"""end-of-line convention used in this file
:type: string
"""
softspace = property(lambda self: True)
"""flag indicating that a space needs to be printed; used by print
:type: bool
"""
class float(object):
"""
float(x) -> floating point number
Convert a string or number to a floating point number, if possible.
"""
def as_integer_ratio(self): # real signature unknown; restored from __doc__
"""
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)
"""
pass
def conjugate(self, *args, **kwargs): # real signature unknown
""" Return self, the complex conjugate of any float. """
pass
def fromhex(self, string): # real signature unknown; restored from __doc__
"""
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
"""
return 0.0
def hex(self): # real signature unknown; restored from __doc__
"""
float.hex() -> string
Return a hexadecimal representation of a floating-point number.
>>> (-0.1).hex()
'-0x1.999999999999ap-4'
>>> 3.14159.hex()
'0x1.921f9f01b866ep+1'
"""
return ""
def is_integer(self, *args, **kwargs): # real signature unknown
""" Return True if the float is an integer. """
pass
def __abs__(self): # real signature unknown; restored from __doc__
""" x.__abs__() <==> abs(x) """
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __coerce__(self, y): # real signature unknown; restored from __doc__
""" x.__coerce__(y) <==> coerce(x, y) """
pass
def __divmod__(self, y): # real signature unknown; restored from __doc__
""" x.__divmod__(y) <==> divmod(x, y) """
pass
def __div__(self, y): # real signature unknown; restored from __doc__
""" x.__div__(y) <==> x/y """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __float__(self): # real signature unknown; restored from __doc__
""" x.__float__() <==> float(x) """
pass
def __floordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__floordiv__(y) <==> x//y """
pass
def __format__(self, format_spec): # real signature unknown; restored from __doc__
"""
float.__format__(format_spec) -> string
Formats the float according to format_spec.
"""
return ""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getformat__(self, typestr): # real signature unknown; restored from __doc__
"""
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.
"""
return ""
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, x): # real signature unknown; restored from __doc__
pass
def __int__(self): # real signature unknown; restored from __doc__
""" x.__int__() <==> int(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __long__(self): # real signature unknown; restored from __doc__
""" x.__long__() <==> long(x) """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mod__(self, y): # real signature unknown; restored from __doc__
""" x.__mod__(y) <==> x%y """
pass
def __mul__(self, y): # real signature unknown; restored from __doc__
""" x.__mul__(y) <==> x*y """
pass
def __neg__(self): # real signature unknown; restored from __doc__
""" x.__neg__() <==> -x """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __nonzero__(self): # real signature unknown; restored from __doc__
""" x.__nonzero__() <==> x != 0 """
pass
def __pos__(self): # real signature unknown; restored from __doc__
""" x.__pos__() <==> +x """
pass
def __pow__(self, y, z=None): # real signature unknown; restored from __doc__
""" x.__pow__(y[, z]) <==> pow(x, y[, z]) """
pass
def __radd__(self, y): # real signature unknown; restored from __doc__
""" x.__radd__(y) <==> y+x """
pass
def __rdivmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rdivmod__(y) <==> divmod(y, x) """
pass
def __rdiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rdiv__(y) <==> y/x """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rfloordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rfloordiv__(y) <==> y//x """
pass
def __rmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rmod__(y) <==> y%x """
pass
def __rmul__(self, y): # real signature unknown; restored from __doc__
""" x.__rmul__(y) <==> y*x """
pass
def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__
""" y.__rpow__(x[, z]) <==> pow(x, y[, z]) """
pass
def __rsub__(self, y): # real signature unknown; restored from __doc__
""" x.__rsub__(y) <==> y-x """
pass
def __rtruediv__(self, y): # real signature unknown; restored from __doc__
""" x.__rtruediv__(y) <==> y/x """
pass
def __setformat__(self, typestr, fmt): # real signature unknown; restored from __doc__
"""
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.
"""
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
def __sub__(self, y): # real signature unknown; restored from __doc__
""" x.__sub__(y) <==> x-y """
pass
def __truediv__(self, y): # real signature unknown; restored from __doc__
""" x.__truediv__(y) <==> x/y """
pass
def __trunc__(self, *args, **kwargs): # real signature unknown
""" Return the Integral closest to x between 0 and x. """
pass
imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the imaginary part of a complex number"""
real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the real part of a complex number"""
class frozenset(object):
"""
frozenset() -> empty frozenset object
frozenset(iterable) -> frozenset object
Build an immutable unordered collection of unique elements.
"""
def copy(self, *args, **kwargs): # real signature unknown
""" Return a shallow copy of a set. """
pass
def difference(self, *args, **kwargs): # real signature unknown
"""
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.)
"""
pass
def intersection(self, *args, **kwargs): # real signature unknown
"""
Return the intersection of two or more sets as a new set.
(i.e. elements that are common to all of the sets.)
"""
pass
def isdisjoint(self, *args, **kwargs): # real signature unknown
""" Return True if two sets have a null intersection. """
pass
def issubset(self, *args, **kwargs): # real signature unknown
""" Report whether another set contains this set. """
pass
def issuperset(self, *args, **kwargs): # real signature unknown
""" Report whether this set contains another set. """
pass
def symmetric_difference(self, *args, **kwargs): # real signature unknown
"""
Return the symmetric difference of two sets as a new set.
(i.e. all elements that are in exactly one of the sets.)
"""
pass
def union(self, *args, **kwargs): # real signature unknown
"""
Return the union of sets as a new set.
(i.e. all elements that are in either set.)
"""
pass
def __and__(self, y): # real signature unknown; restored from __doc__
""" x.__and__(y) <==> x&y """
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x. """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, seq=()): # known special case of frozenset.__init__
""" x.__init__(...) initializes x; see help(type(x)) for signature """
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __or__(self, y): # real signature unknown; restored from __doc__
""" x.__or__(y) <==> x|y """
pass
def __rand__(self, y): # real signature unknown; restored from __doc__
""" x.__rand__(y) <==> y&x """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
""" Return state information for pickling. """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
""" x.__ror__(y) <==> y|x """
pass
def __rsub__(self, y): # real signature unknown; restored from __doc__
""" x.__rsub__(y) <==> y-x """
pass
def __rxor__(self, y): # real signature unknown; restored from __doc__
""" x.__rxor__(y) <==> y^x """
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
""" S.__sizeof__() -> size of S in memory, in bytes """
pass
def __sub__(self, y): # real signature unknown; restored from __doc__
""" x.__sub__(y) <==> x-y """
pass
def __xor__(self, y): # real signature unknown; restored from __doc__
""" x.__xor__(y) <==> x^y """
pass
class list(object):
"""
list() -> new empty list
list(iterable) -> new list initialized from iterable's items
"""
def append(self, p_object): # real signature unknown; restored from __doc__
""" L.append(object) -- append object to end """
pass
def count(self, value): # real signature unknown; restored from __doc__
""" L.count(value) -> integer -- return number of occurrences of value """
return 0
def extend(self, iterable): # real signature unknown; restored from __doc__
""" L.extend(iterable) -- extend list by appending elements from the iterable """
pass
def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__
"""
L.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
"""
return 0
def insert(self, index, p_object): # real signature unknown; restored from __doc__
""" L.insert(index, object) -- insert object before index """
pass
def pop(self, index=None): # real signature unknown; restored from __doc__
"""
L.pop([index]) -> item -- remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
"""
pass
def remove(self, value): # real signature unknown; restored from __doc__
"""
L.remove(value) -- remove first occurrence of value.
Raises ValueError if the value is not present.
"""
pass
def reverse(self): # real signature unknown; restored from __doc__
""" L.reverse() -- reverse *IN PLACE* """
pass
def sort(self, cmp=None, key=None, reverse=False): # real signature unknown; restored from __doc__
"""
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;
cmp(x, y) -> -1, 0, 1
"""
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x """
pass
def __delitem__(self, y): # real signature unknown; restored from __doc__
""" x.__delitem__(y) <==> del x[y] """
pass
def __delslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__delslice__(i, j) <==> del x[i:j]
Use of negative indices is not supported.
"""
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __getslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
"""
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __iadd__(self, y): # real signature unknown; restored from __doc__
""" x.__iadd__(y) <==> x+=y """
pass
def __imul__(self, y): # real signature unknown; restored from __doc__
""" x.__imul__(y) <==> x*=y """
pass
def __init__(self, seq=()): # known special case of list.__init__
"""
list() -> new empty list
list(iterable) -> new list initialized from iterable's items
# (copied from class doc)
"""
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mul__(self, n): # real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __reversed__(self): # real signature unknown; restored from __doc__
""" L.__reversed__() -- return a reverse iterator over the list """
pass
def __rmul__(self, n): # real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
def __setitem__(self, i, y): # real signature unknown; restored from __doc__
""" x.__setitem__(i, y) <==> x[i]=y """
pass
def __setslice__(self, i, j, y): # real signature unknown; restored from __doc__
"""
x.__setslice__(i, j, y) <==> x[i:j]=y
Use of negative indices is not supported.
"""
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
""" L.__sizeof__() -- size of L in memory, in bytes """
pass
__hash__ = None
class long(object):
"""
long(x=0) -> long
long(x, base=10) -> long
Convert a number or string to a long integer, or return 0L if no arguments
are given. If x is floating point, the conversion truncates towards zero.
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)
4L
"""
def bit_length(self): # real signature unknown; restored from __doc__
"""
long.bit_length() -> int or long
Number of bits necessary to represent self in binary.
>>> bin(37L)
'0b100101'
>>> (37L).bit_length()
6
"""
return 0
def conjugate(self, *args, **kwargs): # real signature unknown
""" Returns self, the complex conjugate of any long. """
pass
def __abs__(self): # real signature unknown; restored from __doc__
""" x.__abs__() <==> abs(x) """
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __and__(self, y): # real signature unknown; restored from __doc__
""" x.__and__(y) <==> x&y """
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __coerce__(self, y): # real signature unknown; restored from __doc__
""" x.__coerce__(y) <==> coerce(x, y) """
pass
def __divmod__(self, y): # real signature unknown; restored from __doc__
""" x.__divmod__(y) <==> divmod(x, y) """
pass
def __div__(self, y): # real signature unknown; restored from __doc__
""" x.__div__(y) <==> x/y """
pass
def __float__(self): # real signature unknown; restored from __doc__
""" x.__float__() <==> float(x) """
pass
def __floordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__floordiv__(y) <==> x//y """
pass
def __format__(self, *args, **kwargs): # real signature unknown
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __hex__(self): # real signature unknown; restored from __doc__
""" x.__hex__() <==> hex(x) """
pass
def __index__(self): # real signature unknown; restored from __doc__
""" x[y:z] <==> x[y.__index__():z.__index__()] """
pass
def __init__(self, x=0): # real signature unknown; restored from __doc__
pass
def __int__(self): # real signature unknown; restored from __doc__
""" x.__int__() <==> int(x) """
pass
def __invert__(self): # real signature unknown; restored from __doc__
""" x.__invert__() <==> ~x """
pass
def __long__(self): # real signature unknown; restored from __doc__
""" x.__long__() <==> long(x) """
pass
def __lshift__(self, y): # real signature unknown; restored from __doc__
""" x.__lshift__(y) <==> x<<y """
pass
def __mod__(self, y): # real signature unknown; restored from __doc__
""" x.__mod__(y) <==> x%y """
pass
def __mul__(self, y): # real signature unknown; restored from __doc__
""" x.__mul__(y) <==> x*y """
pass
def __neg__(self): # real signature unknown; restored from __doc__
""" x.__neg__() <==> -x """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __nonzero__(self): # real signature unknown; restored from __doc__
""" x.__nonzero__() <==> x != 0 """
pass
def __oct__(self): # real signature unknown; restored from __doc__
""" x.__oct__() <==> oct(x) """
pass
def __or__(self, y): # real signature unknown; restored from __doc__
""" x.__or__(y) <==> x|y """
pass
def __pos__(self): # real signature unknown; restored from __doc__
""" x.__pos__() <==> +x """
pass
def __pow__(self, y, z=None): # real signature unknown; restored from __doc__
""" x.__pow__(y[, z]) <==> pow(x, y[, z]) """
pass
def __radd__(self, y): # real signature unknown; restored from __doc__
""" x.__radd__(y) <==> y+x """
pass
def __rand__(self, y): # real signature unknown; restored from __doc__
""" x.__rand__(y) <==> y&x """
pass
def __rdivmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rdivmod__(y) <==> divmod(y, x) """
pass
def __rdiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rdiv__(y) <==> y/x """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rfloordiv__(self, y): # real signature unknown; restored from __doc__
""" x.__rfloordiv__(y) <==> y//x """
pass
def __rlshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rlshift__(y) <==> y<<x """
pass
def __rmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rmod__(y) <==> y%x """
pass
def __rmul__(self, y): # real signature unknown; restored from __doc__
""" x.__rmul__(y) <==> y*x """
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
""" x.__ror__(y) <==> y|x """
pass
def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__
""" y.__rpow__(x[, z]) <==> pow(x, y[, z]) """
pass
def __rrshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rrshift__(y) <==> y>>x """
pass
def __rshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rshift__(y) <==> x>>y """
pass
def __rsub__(self, y): # real signature unknown; restored from __doc__
""" x.__rsub__(y) <==> y-x """
pass
def __rtruediv__(self, y): # real signature unknown; restored from __doc__
""" x.__rtruediv__(y) <==> y/x """
pass
def __rxor__(self, y): # real signature unknown; restored from __doc__
""" x.__rxor__(y) <==> y^x """
pass
def __sizeof__(self, *args, **kwargs): # real signature unknown
""" Returns size in memory, in bytes """
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
def __sub__(self, y): # real signature unknown; restored from __doc__
""" x.__sub__(y) <==> x-y """
pass
def __truediv__(self, y): # real signature unknown; restored from __doc__
""" x.__truediv__(y) <==> x/y """
pass
def __trunc__(self, *args, **kwargs): # real signature unknown
""" Truncating an Integral returns itself. """
pass
def __xor__(self, y): # real signature unknown; restored from __doc__
""" x.__xor__(y) <==> x^y """
pass
denominator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the denominator of a rational number in lowest terms"""
imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the imaginary part of a complex number"""
numerator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the numerator of a rational number in lowest terms"""
real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""the real part of a complex number"""
class memoryview(object):
"""
memoryview(object)
Create a new memoryview object which references the given object.
"""
def tobytes(self, *args, **kwargs): # real signature unknown
pass
def tolist(self, *args, **kwargs): # real signature unknown
pass
def __delitem__(self, y): # real signature unknown; restored from __doc__
""" x.__delitem__(y) <==> del x[y] """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __init__(self, p_object): # real signature unknown; restored from __doc__
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __setitem__(self, i, y): # real signature unknown; restored from __doc__
""" x.__setitem__(i, y) <==> x[i]=y """
pass
format = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
itemsize = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
ndim = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
readonly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
shape = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
strides = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
suboffsets = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
class property(object):
"""
property(fget=None, fset=None, fdel=None, doc=None) -> property attribute
fget is a function to be used for getting an attribute value, and likewise
fset is a function for setting, and fdel a function for del'ing, an
attribute. Typical use is to define a managed attribute x:
class C(object):
def getx(self): return self._x
def setx(self, value): self._x = value
def delx(self): del self._x
x = property(getx, setx, delx, "I'm the 'x' property.")
Decorators make defining new properties or modifying existing ones easy:
class C(object):
@property
def x(self):
"I am the 'x' property."
return self._x
@x.setter
def x(self, value):
self._x = value
@x.deleter
def x(self):
del self._x
"""
def deleter(self, *args, **kwargs): # real signature unknown
""" Descriptor to change the deleter on a property. """
pass
def getter(self, *args, **kwargs): # real signature unknown
""" Descriptor to change the getter on a property. """
pass
def setter(self, *args, **kwargs): # real signature unknown
""" Descriptor to change the setter on a property. """
pass
def __delete__(self, obj): # real signature unknown; restored from __doc__
""" descr.__delete__(obj) """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __get__(self, obj, type=None): # real signature unknown; restored from __doc__
""" descr.__get__(obj[, type]) -> value """
pass
def __init__(self, fget=None, fset=None, fdel=None, doc=None): # known special case of property.__init__
"""
property(fget=None, fset=None, fdel=None, doc=None) -> property attribute
fget is a function to be used for getting an attribute value, and likewise
fset is a function for setting, and fdel a function for del'ing, an
attribute. Typical use is to define a managed attribute x:
class C(object):
def getx(self): return self._x
def setx(self, value): self._x = value
def delx(self): del self._x
x = property(getx, setx, delx, "I'm the 'x' property.")
Decorators make defining new properties or modifying existing ones easy:
class C(object):
@property
def x(self):
"I am the 'x' property."
return self._x
@x.setter
def x(self, value):
self._x = value
@x.deleter
def x(self):
del self._x
# (copied from class doc)
"""
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __set__(self, obj, value): # real signature unknown; restored from __doc__
""" descr.__set__(obj, value) """
pass
fdel = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
fget = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
fset = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
class reversed(object):
"""
reversed(sequence) -> reverse iterator over values of the sequence
Return a reverse iterator
"""
def next(self): # real signature unknown; restored from __doc__
""" x.next() -> the next value, or raise StopIteration """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __init__(self, sequence): # real signature unknown; restored from __doc__
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __length_hint__(self, *args, **kwargs): # real signature unknown
""" Private method returning an estimate of len(list(it)). """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
class set(object):
"""
set() -> new empty set object
set(iterable) -> new set object
Build an unordered collection of unique elements.
"""
def add(self, *args, **kwargs): # real signature unknown
"""
Add an element to a set.
This has no effect if the element is already present.
"""
pass
def clear(self, *args, **kwargs): # real signature unknown
""" Remove all elements from this set. """
pass
def copy(self, *args, **kwargs): # real signature unknown
""" Return a shallow copy of a set. """
pass
def difference(self, *args, **kwargs): # real signature unknown
"""
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.)
"""
pass
def difference_update(self, *args, **kwargs): # real signature unknown
""" Remove all elements of another set from this set. """
pass
def discard(self, *args, **kwargs): # real signature unknown
"""
Remove an element from a set if it is a member.
If the element is not a member, do nothing.
"""
pass
def intersection(self, *args, **kwargs): # real signature unknown
"""
Return the intersection of two or more sets as a new set.
(i.e. elements that are common to all of the sets.)
"""
pass
def intersection_update(self, *args, **kwargs): # real signature unknown
""" Update a set with the intersection of itself and another. """
pass
def isdisjoint(self, *args, **kwargs): # real signature unknown
""" Return True if two sets have a null intersection. """
pass
def issubset(self, *args, **kwargs): # real signature unknown
""" Report whether another set contains this set. """
pass
def issuperset(self, *args, **kwargs): # real signature unknown
""" Report whether this set contains another set. """
pass
def pop(self, *args, **kwargs): # real signature unknown
"""
Remove and return an arbitrary set element.
Raises KeyError if the set is empty.
"""
pass
def remove(self, *args, **kwargs): # real signature unknown
"""
Remove an element from a set; it must be a member.
If the element is not a member, raise a KeyError.
"""
pass
def symmetric_difference(self, *args, **kwargs): # real signature unknown
"""
Return the symmetric difference of two sets as a new set.
(i.e. all elements that are in exactly one of the sets.)
"""
pass
def symmetric_difference_update(self, *args, **kwargs): # real signature unknown
""" Update a set with the symmetric difference of itself and another. """
pass
def union(self, *args, **kwargs): # real signature unknown
"""
Return the union of sets as a new set.
(i.e. all elements that are in either set.)
"""
pass
def update(self, *args, **kwargs): # real signature unknown
""" Update a set with the union of itself and others. """
pass
def __and__(self, y): # real signature unknown; restored from __doc__
""" x.__and__(y) <==> x&y """
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x. """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __iand__(self, y): # real signature unknown; restored from __doc__
""" x.__iand__(y) <==> x&=y """
pass
def __init__(self, seq=()): # known special case of set.__init__
"""
set() -> new empty set object
set(iterable) -> new set object
Build an unordered collection of unique elements.
# (copied from class doc)
"""
pass
def __ior__(self, y): # real signature unknown; restored from __doc__
""" x.__ior__(y) <==> x|=y """
pass
def __isub__(self, y): # real signature unknown; restored from __doc__
""" x.__isub__(y) <==> x-=y """
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __ixor__(self, y): # real signature unknown; restored from __doc__
""" x.__ixor__(y) <==> x^=y """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __or__(self, y): # real signature unknown; restored from __doc__
""" x.__or__(y) <==> x|y """
pass
def __rand__(self, y): # real signature unknown; restored from __doc__
""" x.__rand__(y) <==> y&x """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
""" Return state information for pickling. """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
""" x.__ror__(y) <==> y|x """
pass
def __rsub__(self, y): # real signature unknown; restored from __doc__
""" x.__rsub__(y) <==> y-x """
pass
def __rxor__(self, y): # real signature unknown; restored from __doc__
""" x.__rxor__(y) <==> y^x """
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
""" S.__sizeof__() -> size of S in memory, in bytes """
pass
def __sub__(self, y): # real signature unknown; restored from __doc__
""" x.__sub__(y) <==> x-y """
pass
def __xor__(self, y): # real signature unknown; restored from __doc__
""" x.__xor__(y) <==> x^y """
pass
__hash__ = None
class slice(object):
"""
slice(stop)
slice(start, stop[, step])
Create a slice object. This is used for extended slicing (e.g. a[0:10:2]).
"""
def indices(self, len): # real signature unknown; restored from __doc__
"""
S.indices(len) -> (start, stop, stride)
Assuming a sequence of length len, calculate the start and stop
indices, and the stride length of the extended slice described by
S. Out of bounds indices are clipped in a manner consistent with the
handling of normal slices.
"""
pass
def __cmp__(self, y): # real signature unknown; restored from __doc__
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, stop): # real signature unknown; restored from __doc__
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
""" Return state information for pickling. """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
start = property(lambda self: 0)
""":type: int"""
step = property(lambda self: 0)
""":type: int"""
stop = property(lambda self: 0)
""":type: int"""
class staticmethod(object):
"""
staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument.
To declare a static method, use this idiom:
class C:
def f(arg1, arg2, ...): ...
f = staticmethod(f)
It can be called either on the class (e.g. C.f()) or on an instance
(e.g. C().f()). The instance is ignored except for its class.
Static methods in Python are similar to those found in Java or C++.
For a more advanced concept, see the classmethod builtin.
"""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __get__(self, obj, type=None): # real signature unknown; restored from __doc__
""" descr.__get__(obj[, type]) -> value """
pass
def __init__(self, function): # real signature unknown; restored from __doc__
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
__func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
class super(object):
"""
super(type, obj) -> bound super object; requires isinstance(obj, type)
super(type) -> unbound super object
super(type, type2) -> bound super object; requires issubclass(type2, type)
Typical use to call a cooperative superclass method:
class C(B):
def meth(self, arg):
super(C, self).meth(arg)
"""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __get__(self, obj, type=None): # real signature unknown; restored from __doc__
""" descr.__get__(obj[, type]) -> value """
pass
def __init__(self, type1, type2=None): # known special case of super.__init__
"""
super(type, obj) -> bound super object; requires isinstance(obj, type)
super(type) -> unbound super object
super(type, type2) -> bound super object; requires issubclass(type2, type)
Typical use to call a cooperative superclass method:
class C(B):
def meth(self, arg):
super(C, self).meth(arg)
# (copied from class doc)
"""
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
__self_class__ = property(lambda self: type(object))
"""the type of the instance invoking super(); may be None
:type: type
"""
__self__ = property(lambda self: type(object))
"""the instance invoking super(); may be None
:type: type
"""
__thisclass__ = property(lambda self: type(object))
"""the class invoking super()
:type: type
"""
class tuple(object):
"""
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
If the argument is a tuple, the return value is the same object.
"""
def count(self, value): # real signature unknown; restored from __doc__
""" T.count(value) -> integer -- return number of occurrences of value """
return 0
def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__
"""
T.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
"""
return 0
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __getslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
"""
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, seq=()): # known special case of tuple.__init__
"""
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items
If the argument is a tuple, the return value is the same object.
# (copied from class doc)
"""
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mul__(self, n): # real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rmul__(self, n): # real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
class type(object):
"""
type(object) -> the object's type
type(name, bases, dict) -> a new type
"""
def mro(self): # real signature unknown; restored from __doc__
"""
mro() -> list
return a type's method resolution order
"""
return []
def __call__(self, *more): # real signature unknown; restored from __doc__
""" x.__call__(...) <==> x(...) """
pass
def __delattr__(self, name): # real signature unknown; restored from __doc__
""" x.__delattr__('name') <==> del x.name """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(cls, what, bases=None, dict=None): # known special case of type.__init__
"""
type(object) -> the object's type
type(name, bases, dict) -> a new type
# (copied from class doc)
"""
pass
def __instancecheck__(self): # real signature unknown; restored from __doc__
"""
__instancecheck__() -> bool
check if an object is an instance
"""
return False
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __setattr__(self, name, value): # real signature unknown; restored from __doc__
""" x.__setattr__('name', value) <==> x.name = value """
pass
def __subclasscheck__(self): # real signature unknown; restored from __doc__
"""
__subclasscheck__() -> bool
check if a class is a subclass
"""
return False
def __subclasses__(self): # real signature unknown; restored from __doc__
""" __subclasses__() -> list of immediate subclasses """
return []
__abstractmethods__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
__bases__ = (
object,
)
__base__ = object
__basicsize__ = 436
__dictoffset__ = 132
__dict__ = None # (!) real value is ''
__flags__ = -2146544149
__itemsize__ = 20
__mro__ = (
None, # (!) forward: type, real value is ''
object,
)
__name__ = 'type'
__weakrefoffset__ = 184
class unicode(basestring):
"""
unicode(object='') -> unicode object
unicode(string[, encoding[, errors]]) -> unicode 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'.
"""
def capitalize(self): # real signature unknown; restored from __doc__
"""
S.capitalize() -> unicode
Return a capitalized version of S, i.e. make the first character
have upper case and the rest lower case.
"""
return u""
def center(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
S.center(width[, fillchar]) -> unicode
Return S centered in a Unicode string of length width. Padding is
done using the specified fill character (default is a space)
"""
return u""
def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.count(sub[, start[, end]]) -> int
Return the number of non-overlapping occurrences of substring sub in
Unicode string S[start:end]. Optional arguments start and end are
interpreted as in slice notation.
"""
return 0
def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__
"""
S.decode([encoding[,errors]]) -> string or unicode
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.
"""
return ""
def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__
"""
S.encode([encoding[,errors]]) -> string or unicode
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 can handle UnicodeEncodeErrors.
"""
return ""
def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__
"""
S.expandtabs([tabsize]) -> unicode
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.
"""
return u""
def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return 0
def format(*args, **kwargs): # known special case of unicode.format
"""
S.format(*args, **kwargs) -> unicode
Return a formatted version of S, using substitutions from args and kwargs.
The substitutions are identified by braces ('{' and '}').
"""
pass
def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.index(sub [,start [,end]]) -> int
Like S.find() but raise ValueError when the substring is not found.
"""
return 0
def isalnum(self): # real signature unknown; restored from __doc__
"""
S.isalnum() -> bool
Return True if all characters in S are alphanumeric
and there is at least one character in S, False otherwise.
"""
return False
def isalpha(self): # real signature unknown; restored from __doc__
"""
S.isalpha() -> bool
Return True if all characters in S are alphabetic
and there is at least one character in S, False otherwise.
"""
return False
def isdecimal(self): # real signature unknown; restored from __doc__
"""
S.isdecimal() -> bool
Return True if there are only decimal characters in S,
False otherwise.
"""
return False
def isdigit(self): # real signature unknown; restored from __doc__
"""
S.isdigit() -> bool
Return True if all characters in S are digits
and there is at least one character in S, False otherwise.
"""
return False
def islower(self): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def isnumeric(self): # real signature unknown; restored from __doc__
"""
S.isnumeric() -> bool
Return True if there are only numeric characters in S,
False otherwise.
"""
return False
def isspace(self): # real signature unknown; restored from __doc__
"""
S.isspace() -> bool
Return True if all characters in S are whitespace
and there is at least one character in S, False otherwise.
"""
return False
def istitle(self): # real signature unknown; restored from __doc__
"""
S.istitle() -> bool
Return True if S is a titlecased string and there is at least one
character in S, i.e. upper- and titlecase characters may only
follow uncased characters and lowercase characters only cased ones.
Return False otherwise.
"""
return False
def isupper(self): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def join(self, iterable): # real signature unknown; restored from __doc__
"""
S.join(iterable) -> unicode
Return a string which is the concatenation of the strings in the
iterable. The separator between elements is S.
"""
return u""
def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
S.ljust(width[, fillchar]) -> int
Return S left-justified in a Unicode string of length width. Padding is
done using the specified fill character (default is a space).
"""
return 0
def lower(self): # real signature unknown; restored from __doc__
"""
S.lower() -> unicode
Return a copy of the string S converted to lowercase.
"""
return u""
def lstrip(self, chars=None): # real signature unknown; restored from __doc__
"""
S.lstrip([chars]) -> 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 a str, it will be converted to unicode before stripping
"""
return u""
def partition(self, sep): # real signature unknown; restored from __doc__
"""
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.
"""
pass
def replace(self, old, new, count=None): # real signature unknown; restored from __doc__
"""
S.replace(old, new[, count]) -> unicode
Return a copy of S with all occurrences of substring
old replaced by new. If the optional argument count is
given, only the first count occurrences are replaced.
"""
return u""
def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return 0
def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.rindex(sub [,start [,end]]) -> int
Like S.rfind() but raise ValueError when the substring is not found.
"""
return 0
def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__
"""
S.rjust(width[, fillchar]) -> unicode
Return S right-justified in a Unicode string of length width. Padding is
done using the specified fill character (default is a space).
"""
return u""
def rpartition(self, sep): # real signature unknown; restored from __doc__
"""
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.
"""
pass
def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__
"""
S.rsplit([sep [,maxsplit]]) -> list of strings
Return a list of the words in 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, any whitespace string
is a separator.
"""
return []
def rstrip(self, chars=None): # real signature unknown; restored from __doc__
"""
S.rstrip([chars]) -> 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 a str, it will be converted to unicode before stripping
"""
return u""
def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__
"""
S.split([sep [,maxsplit]]) -> list of strings
Return a list of the words in 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.
"""
return []
def splitlines(self, keepends=False): # real signature unknown; restored from __doc__
"""
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.
"""
return []
def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__
"""
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.
"""
return False
def strip(self, chars=None): # real signature unknown; restored from __doc__
"""
S.strip([chars]) -> 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 a str, it will be converted to unicode before stripping
"""
return u""
def swapcase(self): # real signature unknown; restored from __doc__
"""
S.swapcase() -> unicode
Return a copy of S with uppercase characters converted to lowercase
and vice versa.
"""
return u""
def title(self): # real signature unknown; restored from __doc__
"""
S.title() -> unicode
Return a titlecased version of S, i.e. words start with title case
characters, all remaining cased characters have lower case.
"""
return u""
def translate(self, table): # real signature unknown; restored from __doc__
"""
S.translate(table) -> unicode
Return a copy of the string S, where all characters have been mapped
through the given translation table, which must be a mapping of
Unicode ordinals to Unicode ordinals, Unicode strings or None.
Unmapped characters are left untouched. Characters mapped to None
are deleted.
"""
return u""
def upper(self): # real signature unknown; restored from __doc__
"""
S.upper() -> unicode
Return a copy of S converted to uppercase.
"""
return u""
def zfill(self, width): # real signature unknown; restored from __doc__
"""
S.zfill(width) -> unicode
Pad a numeric string S with zeros on the left, to fill a field
of the specified width. The string S is never truncated.
"""
return u""
def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown
pass
def _formatter_parser(self, *args, **kwargs): # real signature unknown
pass
def __add__(self, y): # real signature unknown; restored from __doc__
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, y): # real signature unknown; restored from __doc__
""" x.__contains__(y) <==> y in x """
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __format__(self, format_spec): # real signature unknown; restored from __doc__
"""
S.__format__(format_spec) -> unicode
Return a formatted version of S as described by format_spec.
"""
return u""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __getnewargs__(self, *args, **kwargs): # real signature unknown
pass
def __getslice__(self, i, j): # real signature unknown; restored from __doc__
"""
x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
"""
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __hash__(self): # real signature unknown; restored from __doc__
""" x.__hash__() <==> hash(x) """
pass
def __init__(self, string=u'', encoding=None, errors='strict'): # known special case of unicode.__init__
"""
unicode(object='') -> unicode object
unicode(string[, encoding[, errors]]) -> unicode 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'.
# (copied from class doc)
"""
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mod__(self, y): # real signature unknown; restored from __doc__
""" x.__mod__(y) <==> x%y """
pass
def __mul__(self, n): # real signature unknown; restored from __doc__
""" x.__mul__(n) <==> x*n """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rmod__(self, y): # real signature unknown; restored from __doc__
""" x.__rmod__(y) <==> y%x """
pass
def __rmul__(self, n): # real signature unknown; restored from __doc__
""" x.__rmul__(n) <==> n*x """
pass
def __sizeof__(self): # real signature unknown; restored from __doc__
""" S.__sizeof__() -> size of S in memory, in bytes """
pass
def __str__(self): # real signature unknown; restored from __doc__
""" x.__str__() <==> str(x) """
pass
class xrange(object):
"""
xrange(stop) -> xrange object
xrange(start, stop[, step]) -> xrange object
Like range(), but instead of returning a list, returns an object that
generates the numbers in the range on demand. For looping, this is
slightly faster than range() and more memory efficient.
"""
def __getattribute__(self, name): # real signature unknown; restored from __doc__
""" x.__getattribute__('name') <==> x.name """
pass
def __getitem__(self, y): # real signature unknown; restored from __doc__
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, stop): # real signature unknown; restored from __doc__
pass
def __iter__(self): # real signature unknown; restored from __doc__
""" x.__iter__() <==> iter(x) """
pass
def __len__(self): # real signature unknown; restored from __doc__
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __reversed__(self, *args, **kwargs): # real signature unknown
""" Returns a reverse iterator. """
pass
# variables with complex values
Ellipsis = None # (!) real value is ''
NotImplemented = None # (!) real value is ''
基本常用的很少,主要大部分都是私有方法
2、浮点型
如:3.14、2.88
查看方法同上
3、字符串(很常用)
方法如下
1 class str(basestring): 2 """ 3 str(object='') -> string 4 5 Return a nice string representation of the object. 6 If the argument is a string, the return value is the same object. 7 """ 8 def capitalize(self): # real signature unknown; restored from __doc__ 9 """ 10 S.capitalize() -> string 11 12 Return a copy of the string S with only its first character 13 capitalized. 14 """ 15 return "" 16 17 def center(self, width, fillchar=None): # real signature unknown; restored from __doc__ 18 """ 19 S.center(width[, fillchar]) -> string 20 21 Return S centered in a string of length width. Padding is 22 done using the specified fill character (default is a space) 23 """ 24 return "" 25 26 def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 27 """ 28 S.count(sub[, start[, end]]) -> int 29 30 Return the number of non-overlapping occurrences of substring sub in 31 string S[start:end]. Optional arguments start and end are interpreted 32 as in slice notation. 33 """ 34 return 0 35 36 def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 37 """ 38 S.decode([encoding[,errors]]) -> object 39 40 Decodes S using the codec registered for encoding. encoding defaults 41 to the default encoding. errors may be given to set a different error 42 handling scheme. Default is 'strict' meaning that encoding errors raise 43 a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' 44 as well as any other name registered with codecs.register_error that is 45 able to handle UnicodeDecodeErrors. 46 """ 47 return object() 48 49 def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 50 """ 51 S.encode([encoding[,errors]]) -> object 52 53 Encodes S using the codec registered for encoding. encoding defaults 54 to the default encoding. errors may be given to set a different error 55 handling scheme. Default is 'strict' meaning that encoding errors raise 56 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 57 'xmlcharrefreplace' as well as any other name registered with 58 codecs.register_error that is able to handle UnicodeEncodeErrors. 59 """ 60 return object() 61 62 def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__ 63 """ 64 S.endswith(suffix[, start[, end]]) -> bool 65 66 Return True if S ends with the specified suffix, False otherwise. 67 With optional start, test S beginning at that position. 68 With optional end, stop comparing S at that position. 69 suffix can also be a tuple of strings to try. 70 """ 71 return False 72 73 def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__ 74 """ 75 S.expandtabs([tabsize]) -> string 76 77 Return a copy of S where all tab characters are expanded using spaces. 78 If tabsize is not given, a tab size of 8 characters is assumed. 79 """ 80 return "" 81 82 def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 83 """ 84 S.find(sub [,start [,end]]) -> int 85 86 Return the lowest index in S where substring sub is found, 87 such that sub is contained within S[start:end]. Optional 88 arguments start and end are interpreted as in slice notation. 89 90 Return -1 on failure. 91 """ 92 return 0 93 94 def format(*args, **kwargs): # known special case of str.format 95 """ 96 S.format(*args, **kwargs) -> string 97 98 Return a formatted version of S, using substitutions from args and kwargs. 99 The substitutions are identified by braces ('{' and '}'). 100 """ 101 pass 102 103 def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 104 """ 105 S.index(sub [,start [,end]]) -> int 106 107 Like S.find() but raise ValueError when the substring is not found. 108 """ 109 return 0 110 111 def isalnum(self): # real signature unknown; restored from __doc__ 112 """ 113 S.isalnum() -> bool 114 115 Return True if all characters in S are alphanumeric 116 and there is at least one character in S, False otherwise. 117 """ 118 return False 119 120 def isalpha(self): # real signature unknown; restored from __doc__ 121 """ 122 S.isalpha() -> bool 123 124 Return True if all characters in S are alphabetic 125 and there is at least one character in S, False otherwise. 126 """ 127 return False 128 129 def isdigit(self): # real signature unknown; restored from __doc__ 130 """ 131 S.isdigit() -> bool 132 133 Return True if all characters in S are digits 134 and there is at least one character in S, False otherwise. 135 """ 136 return False 137 138 def islower(self): # real signature unknown; restored from __doc__ 139 """ 140 S.islower() -> bool 141 142 Return True if all cased characters in S are lowercase and there is 143 at least one cased character in S, False otherwise. 144 """ 145 return False 146 147 def isspace(self): # real signature unknown; restored from __doc__ 148 """ 149 S.isspace() -> bool 150 151 Return True if all characters in S are whitespace 152 and there is at least one character in S, False otherwise. 153 """ 154 return False 155 156 def istitle(self): # real signature unknown; restored from __doc__ 157 """ 158 S.istitle() -> bool 159 160 Return True if S is a titlecased string and there is at least one 161 character in S, i.e. uppercase characters may only follow uncased 162 characters and lowercase characters only cased ones. Return False 163 otherwise. 164 """ 165 return False 166 167 def isupper(self): # real signature unknown; restored from __doc__ 168 """ 169 S.isupper() -> bool 170 171 Return True if all cased characters in S are uppercase and there is 172 at least one cased character in S, False otherwise. 173 """ 174 return False 175 176 def join(self, iterable): # real signature unknown; restored from __doc__ 177 """ 178 S.join(iterable) -> string 179 180 Return a string which is the concatenation of the strings in the 181 iterable. The separator between elements is S. 182 """ 183 return "" 184 185 def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 186 """ 187 S.ljust(width[, fillchar]) -> string 188 189 Return S left-justified in a string of length width. Padding is 190 done using the specified fill character (default is a space). 191 """ 192 return "" 193 194 def lower(self): # real signature unknown; restored from __doc__ 195 """ 196 S.lower() -> string 197 198 Return a copy of the string S converted to lowercase. 199 """ 200 return "" 201 202 def lstrip(self, chars=None): # real signature unknown; restored from __doc__ 203 """ 204 S.lstrip([chars]) -> string or unicode 205 206 Return a copy of the string S with leading whitespace removed. 207 If chars is given and not None, remove characters in chars instead. 208 If chars is unicode, S will be converted to unicode before stripping 209 """ 210 return "" 211 212 def partition(self, sep): # real signature unknown; restored from __doc__ 213 """ 214 S.partition(sep) -> (head, sep, tail) 215 216 Search for the separator sep in S, and return the part before it, 217 the separator itself, and the part after it. If the separator is not 218 found, return S and two empty strings. 219 """ 220 pass 221 222 def replace(self, old, new, count=None): # real signature unknown; restored from __doc__ 223 """ 224 S.replace(old, new[, count]) -> string 225 226 Return a copy of string S with all occurrences of substring 227 old replaced by new. If the optional argument count is 228 given, only the first count occurrences are replaced. 229 """ 230 return "" 231 232 def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 233 """ 234 S.rfind(sub [,start [,end]]) -> int 235 236 Return the highest index in S where substring sub is found, 237 such that sub is contained within S[start:end]. Optional 238 arguments start and end are interpreted as in slice notation. 239 240 Return -1 on failure. 241 """ 242 return 0 243 244 def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 245 """ 246 S.rindex(sub [,start [,end]]) -> int 247 248 Like S.rfind() but raise ValueError when the substring is not found. 249 """ 250 return 0 251 252 def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 253 """ 254 S.rjust(width[, fillchar]) -> string 255 256 Return S right-justified in a string of length width. Padding is 257 done using the specified fill character (default is a space) 258 """ 259 return "" 260 261 def rpartition(self, sep): # real signature unknown; restored from __doc__ 262 """ 263 S.rpartition(sep) -> (head, sep, tail) 264 265 Search for the separator sep in S, starting at the end of S, and return 266 the part before it, the separator itself, and the part after it. If the 267 separator is not found, return two empty strings and S. 268 """ 269 pass 270 271 def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 272 """ 273 S.rsplit([sep [,maxsplit]]) -> list of strings 274 275 Return a list of the words in the string S, using sep as the 276 delimiter string, starting at the end of the string and working 277 to the front. If maxsplit is given, at most maxsplit splits are 278 done. If sep is not specified or is None, any whitespace string 279 is a separator. 280 """ 281 return [] 282 283 def rstrip(self, chars=None): # real signature unknown; restored from __doc__ 284 """ 285 S.rstrip([chars]) -> string or unicode 286 287 Return a copy of the string S with trailing whitespace removed. 288 If chars is given and not None, remove characters in chars instead. 289 If chars is unicode, S will be converted to unicode before stripping 290 """ 291 return "" 292 293 def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 294 """ 295 S.split([sep [,maxsplit]]) -> list of strings 296 297 Return a list of the words in the string S, using sep as the 298 delimiter string. If maxsplit is given, at most maxsplit 299 splits are done. If sep is not specified or is None, any 300 whitespace string is a separator and empty strings are removed 301 from the result. 302 """ 303 return [] 304 305 def splitlines(self, keepends=False): # real signature unknown; restored from __doc__ 306 """ 307 S.splitlines(keepends=False) -> list of strings 308 309 Return a list of the lines in S, breaking at line boundaries. 310 Line breaks are not included in the resulting list unless keepends 311 is given and true. 312 """ 313 return [] 314 315 def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__ 316 """ 317 S.startswith(prefix[, start[, end]]) -> bool 318 319 Return True if S starts with the specified prefix, False otherwise. 320 With optional start, test S beginning at that position. 321 With optional end, stop comparing S at that position. 322 prefix can also be a tuple of strings to try. 323 """ 324 return False 325 326 def strip(self, chars=None): # real signature unknown; restored from __doc__ 327 """ 328 S.strip([chars]) -> string or unicode 329 330 Return a copy of the string S with leading and trailing 331 whitespace removed. 332 If chars is given and not None, remove characters in chars instead. 333 If chars is unicode, S will be converted to unicode before stripping 334 """ 335 return "" 336 337 def swapcase(self): # real signature unknown; restored from __doc__ 338 """ 339 S.swapcase() -> string 340 341 Return a copy of the string S with uppercase characters 342 converted to lowercase and vice versa. 343 """ 344 return "" 345 346 def title(self): # real signature unknown; restored from __doc__ 347 """ 348 S.title() -> string 349 350 Return a titlecased version of S, i.e. words start with uppercase 351 characters, all remaining cased characters have lowercase. 352 """ 353 return "" 354 355 def translate(self, table, deletechars=None): # real signature unknown; restored from __doc__ 356 """ 357 S.translate(table [,deletechars]) -> string 358 359 Return a copy of the string S, where all characters occurring 360 in the optional argument deletechars are removed, and the 361 remaining characters have been mapped through the given 362 translation table, which must be a string of length 256 or None. 363 If the table argument is None, no translation is applied and 364 the operation simply removes the characters in deletechars. 365 """ 366 return "" 367 368 def upper(self): # real signature unknown; restored from __doc__ 369 """ 370 S.upper() -> string 371 372 Return a copy of the string S converted to uppercase. 373 """ 374 return "" 375 376 def zfill(self, width): # real signature unknown; restored from __doc__ 377 """ 378 S.zfill(width) -> string 379 380 Pad a numeric string S with zeros on the left, to fill a field 381 of the specified width. The string S is never truncated. 382 """ 383 return "" 384 385 def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown 386 pass 387 388 def _formatter_parser(self, *args, **kwargs): # real signature unknown 389 pass 390 391 def __add__(self, y): # real signature unknown; restored from __doc__ 392 """ x.__add__(y) <==> x+y """ 393 pass 394 395 def __contains__(self, y): # real signature unknown; restored from __doc__ 396 """ x.__contains__(y) <==> y in x """ 397 pass 398 399 def __eq__(self, y): # real signature unknown; restored from __doc__ 400 """ x.__eq__(y) <==> x==y """ 401 pass 402 403 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 404 """ 405 S.__format__(format_spec) -> string 406 407 Return a formatted version of S as described by format_spec. 408 """ 409 return "" 410 411 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 412 """ x.__getattribute__('name') <==> x.name """ 413 pass 414 415 def __getitem__(self, y): # real signature unknown; restored from __doc__ 416 """ x.__getitem__(y) <==> x[y] """ 417 pass 418 419 def __getnewargs__(self, *args, **kwargs): # real signature unknown 420 pass 421 422 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 423 """ 424 x.__getslice__(i, j) <==> x[i:j] 425 426 Use of negative indices is not supported. 427 """ 428 pass 429 430 def __ge__(self, y): # real signature unknown; restored from __doc__ 431 """ x.__ge__(y) <==> x>=y """ 432 pass 433 434 def __gt__(self, y): # real signature unknown; restored from __doc__ 435 """ x.__gt__(y) <==> x>y """ 436 pass 437 438 def __hash__(self): # real signature unknown; restored from __doc__ 439 """ x.__hash__() <==> hash(x) """ 440 pass 441 442 def __init__(self, string=''): # known special case of str.__init__ 443 """ 444 str(object='') -> string 445 446 Return a nice string representation of the object. 447 If the argument is a string, the return value is the same object. 448 # (copied from class doc) 449 """ 450 pass 451 452 def __len__(self): # real signature unknown; restored from __doc__ 453 """ x.__len__() <==> len(x) """ 454 pass 455 456 def __le__(self, y): # real signature unknown; restored from __doc__ 457 """ x.__le__(y) <==> x<=y """ 458 pass 459 460 def __lt__(self, y): # real signature unknown; restored from __doc__ 461 """ x.__lt__(y) <==> x<y """ 462 pass 463 464 def __mod__(self, y): # real signature unknown; restored from __doc__ 465 """ x.__mod__(y) <==> x%y """ 466 pass 467 468 def __mul__(self, n): # real signature unknown; restored from __doc__ 469 """ x.__mul__(n) <==> x*n """ 470 pass 471 472 @staticmethod # known case of __new__ 473 def __new__(S, *more): # real signature unknown; restored from __doc__ 474 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 475 pass 476 477 def __ne__(self, y): # real signature unknown; restored from __doc__ 478 """ x.__ne__(y) <==> x!=y """ 479 pass 480 481 def __repr__(self): # real signature unknown; restored from __doc__ 482 """ x.__repr__() <==> repr(x) """ 483 pass 484 485 def __rmod__(self, y): # real signature unknown; restored from __doc__ 486 """ x.__rmod__(y) <==> y%x """ 487 pass 488 489 def __rmul__(self, n): # real signature unknown; restored from __doc__ 490 """ x.__rmul__(n) <==> n*x """ 491 pass 492 493 def __sizeof__(self): # real signature unknown; restored from __doc__ 494 """ S.__sizeof__() -> size of S in memory, in bytes """ 495 pass 496 497 def __str__(self): # real signature unknown; restored from __doc__ 498 """ x.__str__() <==> str(x) """ 499 pass 500 501 502 bytes = str 503 504 505 class classmethod(object): 506 """ 507 classmethod(function) -> method 508 509 Convert a function to be a class method. 510 511 A class method receives the class as implicit first argument, 512 just like an instance method receives the instance. 513 To declare a class method, use this idiom: 514 515 class C: 516 def f(cls, arg1, arg2, ...): ... 517 f = classmethod(f) 518 519 It can be called either on the class (e.g. C.f()) or on an instance 520 (e.g. C().f()). The instance is ignored except for its class. 521 If a class method is called for a derived class, the derived class 522 object is passed as the implied first argument. 523 524 Class methods are different than C++ or Java static methods. 525 If you want those, see the staticmethod builtin. 526 """ 527 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 528 """ x.__getattribute__('name') <==> x.name """ 529 pass 530 531 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 532 """ descr.__get__(obj[, type]) -> value """ 533 pass 534 535 def __init__(self, function): # real signature unknown; restored from __doc__ 536 pass 537 538 @staticmethod # known case of __new__ 539 def __new__(S, *more): # real signature unknown; restored from __doc__ 540 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 541 pass 542 543 __func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 544 545 546 547 class complex(object): 548 """ 549 complex(real[, imag]) -> complex number 550 551 Create a complex number from a real part and an optional imaginary part. 552 This is equivalent to (real + imag*1j) where imag defaults to 0. 553 """ 554 def conjugate(self): # real signature unknown; restored from __doc__ 555 """ 556 complex.conjugate() -> complex 557 558 Return the complex conjugate of its argument. (3-4j).conjugate() == 3+4j. 559 """ 560 return complex 561 562 def __abs__(self): # real signature unknown; restored from __doc__ 563 """ x.__abs__() <==> abs(x) """ 564 pass 565 566 def __add__(self, y): # real signature unknown; restored from __doc__ 567 """ x.__add__(y) <==> x+y """ 568 pass 569 570 def __coerce__(self, y): # real signature unknown; restored from __doc__ 571 """ x.__coerce__(y) <==> coerce(x, y) """ 572 pass 573 574 def __divmod__(self, y): # real signature unknown; restored from __doc__ 575 """ x.__divmod__(y) <==> divmod(x, y) """ 576 pass 577 578 def __div__(self, y): # real signature unknown; restored from __doc__ 579 """ x.__div__(y) <==> x/y """ 580 pass 581 582 def __eq__(self, y): # real signature unknown; restored from __doc__ 583 """ x.__eq__(y) <==> x==y """ 584 pass 585 586 def __float__(self): # real signature unknown; restored from __doc__ 587 """ x.__float__() <==> float(x) """ 588 pass 589 590 def __floordiv__(self, y): # real signature unknown; restored from __doc__ 591 """ x.__floordiv__(y) <==> x//y """ 592 pass 593 594 def __format__(self): # real signature unknown; restored from __doc__ 595 """ 596 complex.__format__() -> str 597 598 Convert to a string according to format_spec. 599 """ 600 return "" 601 602 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 603 """ x.__getattribute__('name') <==> x.name """ 604 pass 605 606 def __getnewargs__(self, *args, **kwargs): # real signature unknown 607 pass 608 609 def __ge__(self, y): # real signature unknown; restored from __doc__ 610 """ x.__ge__(y) <==> x>=y """ 611 pass 612 613 def __gt__(self, y): # real signature unknown; restored from __doc__ 614 """ x.__gt__(y) <==> x>y """ 615 pass 616 617 def __hash__(self): # real signature unknown; restored from __doc__ 618 """ x.__hash__() <==> hash(x) """ 619 pass 620 621 def __init__(self, real, imag=None): # real signature unknown; restored from __doc__ 622 pass 623 624 def __int__(self): # real signature unknown; restored from __doc__ 625 """ x.__int__() <==> int(x) """ 626 pass 627 628 def __le__(self, y): # real signature unknown; restored from __doc__ 629 """ x.__le__(y) <==> x<=y """ 630 pass 631 632 def __long__(self): # real signature unknown; restored from __doc__ 633 """ x.__long__() <==> long(x) """ 634 pass 635 636 def __lt__(self, y): # real signature unknown; restored from __doc__ 637 """ x.__lt__(y) <==> x<y """ 638 pass 639 640 def __mod__(self, y): # real signature unknown; restored from __doc__ 641 """ x.__mod__(y) <==> x%y """ 642 pass 643 644 def __mul__(self, y): # real signature unknown; restored from __doc__ 645 """ x.__mul__(y) <==> x*y """ 646 pass 647 648 def __neg__(self): # real signature unknown; restored from __doc__ 649 """ x.__neg__() <==> -x """ 650 pass 651 652 @staticmethod # known case of __new__ 653 def __new__(S, *more): # real signature unknown; restored from __doc__ 654 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 655 pass 656 657 def __ne__(self, y): # real signature unknown; restored from __doc__ 658 """ x.__ne__(y) <==> x!=y """ 659 pass 660 661 def __nonzero__(self): # real signature unknown; restored from __doc__ 662 """ x.__nonzero__() <==> x != 0 """ 663 pass 664 665 def __pos__(self): # real signature unknown; restored from __doc__ 666 """ x.__pos__() <==> +x """ 667 pass 668 669 def __pow__(self, y, z=None): # real signature unknown; restored from __doc__ 670 """ x.__pow__(y[, z]) <==> pow(x, y[, z]) """ 671 pass 672 673 def __radd__(self, y): # real signature unknown; restored from __doc__ 674 """ x.__radd__(y) <==> y+x """ 675 pass 676 677 def __rdivmod__(self, y): # real signature unknown; restored from __doc__ 678 """ x.__rdivmod__(y) <==> divmod(y, x) """ 679 pass 680 681 def __rdiv__(self, y): # real signature unknown; restored from __doc__ 682 """ x.__rdiv__(y) <==> y/x """ 683 pass 684 685 def __repr__(self): # real signature unknown; restored from __doc__ 686 """ x.__repr__() <==> repr(x) """ 687 pass 688 689 def __rfloordiv__(self, y): # real signature unknown; restored from __doc__ 690 """ x.__rfloordiv__(y) <==> y//x """ 691 pass 692 693 def __rmod__(self, y): # real signature unknown; restored from __doc__ 694 """ x.__rmod__(y) <==> y%x """ 695 pass 696 697 def __rmul__(self, y): # real signature unknown; restored from __doc__ 698 """ x.__rmul__(y) <==> y*x """ 699 pass 700 701 def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__ 702 """ y.__rpow__(x[, z]) <==> pow(x, y[, z]) """ 703 pass 704 705 def __rsub__(self, y): # real signature unknown; restored from __doc__ 706 """ x.__rsub__(y) <==> y-x """ 707 pass 708 709 def __rtruediv__(self, y): # real signature unknown; restored from __doc__ 710 """ x.__rtruediv__(y) <==> y/x """ 711 pass 712 713 def __str__(self): # real signature unknown; restored from __doc__ 714 """ x.__str__() <==> str(x) """ 715 pass 716 717 def __sub__(self, y): # real signature unknown; restored from __doc__ 718 """ x.__sub__(y) <==> x-y """ 719 pass 720 721 def __truediv__(self, y): # real signature unknown; restored from __doc__ 722 """ x.__truediv__(y) <==> x/y """ 723 pass 724 725 imag = property(lambda self: 0.0) 726 """the imaginary part of a complex number 727 728 :type: float 729 """ 730 731 real = property(lambda self: 0.0) 732 """the real part of a complex number 733 734 :type: float 735 """ 736 737 738 739 class dict(object): 740 """ 741 dict() -> new empty dictionary 742 dict(mapping) -> new dictionary initialized from a mapping object's 743 (key, value) pairs 744 dict(iterable) -> new dictionary initialized as if via: 745 d = {} 746 for k, v in iterable: 747 d[k] = v 748 dict(**kwargs) -> new dictionary initialized with the name=value pairs 749 in the keyword argument list. For example: dict(one=1, two=2) 750 """ 751 def clear(self): # real signature unknown; restored from __doc__ 752 """ D.clear() -> None. Remove all items from D. """ 753 pass 754 755 def copy(self): # real signature unknown; restored from __doc__ 756 """ D.copy() -> a shallow copy of D """ 757 pass 758 759 @staticmethod # known case 760 def fromkeys(S, v=None): # real signature unknown; restored from __doc__ 761 """ 762 dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v. 763 v defaults to None. 764 """ 765 pass 766 767 def get(self, k, d=None): # real signature unknown; restored from __doc__ 768 """ D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. """ 769 pass 770 771 def has_key(self, k): # real signature unknown; restored from __doc__ 772 """ D.has_key(k) -> True if D has a key k, else False """ 773 return False 774 775 def items(self): # real signature unknown; restored from __doc__ 776 """ D.items() -> list of D's (key, value) pairs, as 2-tuples """ 777 return [] 778 779 def iteritems(self): # real signature unknown; restored from __doc__ 780 """ D.iteritems() -> an iterator over the (key, value) items of D """ 781 pass 782 783 def iterkeys(self): # real signature unknown; restored from __doc__ 784 """ D.iterkeys() -> an iterator over the keys of D """ 785 pass 786 787 def itervalues(self): # real signature unknown; restored from __doc__ 788 """ D.itervalues() -> an iterator over the values of D """ 789 pass 790 791 def keys(self): # real signature unknown; restored from __doc__ 792 """ D.keys() -> list of D's keys """ 793 return [] 794 795 def pop(self, k, d=None): # real signature unknown; restored from __doc__ 796 """ 797 D.pop(k[,d]) -> v, remove specified key and return the corresponding value. 798 If key is not found, d is returned if given, otherwise KeyError is raised 799 """ 800 pass 801 802 def popitem(self): # real signature unknown; restored from __doc__ 803 """ 804 D.popitem() -> (k, v), remove and return some (key, value) pair as a 805 2-tuple; but raise KeyError if D is empty. 806 """ 807 pass 808 809 def setdefault(self, k, d=None): # real signature unknown; restored from __doc__ 810 """ D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D """ 811 pass 812 813 def update(self, E=None, **F): # known special case of dict.update 814 """ 815 D.update([E, ]**F) -> None. Update D from dict/iterable E and F. 816 If E present and has a .keys() method, does: for k in E: D[k] = E[k] 817 If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v 818 In either case, this is followed by: for k in F: D[k] = F[k] 819 """ 820 pass 821 822 def values(self): # real signature unknown; restored from __doc__ 823 """ D.values() -> list of D's values """ 824 return [] 825 826 def viewitems(self): # real signature unknown; restored from __doc__ 827 """ D.viewitems() -> a set-like object providing a view on D's items """ 828 pass 829 830 def viewkeys(self): # real signature unknown; restored from __doc__ 831 """ D.viewkeys() -> a set-like object providing a view on D's keys """ 832 pass 833 834 def viewvalues(self): # real signature unknown; restored from __doc__ 835 """ D.viewvalues() -> an object providing a view on D's values """ 836 pass 837 838 def __cmp__(self, y): # real signature unknown; restored from __doc__ 839 """ x.__cmp__(y) <==> cmp(x,y) """ 840 pass 841 842 def __contains__(self, k): # real signature unknown; restored from __doc__ 843 """ D.__contains__(k) -> True if D has a key k, else False """ 844 return False 845 846 def __delitem__(self, y): # real signature unknown; restored from __doc__ 847 """ x.__delitem__(y) <==> del x[y] """ 848 pass 849 850 def __eq__(self, y): # real signature unknown; restored from __doc__ 851 """ x.__eq__(y) <==> x==y """ 852 pass 853 854 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 855 """ x.__getattribute__('name') <==> x.name """ 856 pass 857 858 def __getitem__(self, y): # real signature unknown; restored from __doc__ 859 """ x.__getitem__(y) <==> x[y] """ 860 pass 861 862 def __ge__(self, y): # real signature unknown; restored from __doc__ 863 """ x.__ge__(y) <==> x>=y """ 864 pass 865 866 def __gt__(self, y): # real signature unknown; restored from __doc__ 867 """ x.__gt__(y) <==> x>y """ 868 pass 869 870 def __init__(self, seq=None, **kwargs): # known special case of dict.__init__ 871 """ 872 dict() -> new empty dictionary 873 dict(mapping) -> new dictionary initialized from a mapping object's 874 (key, value) pairs 875 dict(iterable) -> new dictionary initialized as if via: 876 d = {} 877 for k, v in iterable: 878 d[k] = v 879 dict(**kwargs) -> new dictionary initialized with the name=value pairs 880 in the keyword argument list. For example: dict(one=1, two=2) 881 # (copied from class doc) 882 """ 883 pass 884 885 def __iter__(self): # real signature unknown; restored from __doc__ 886 """ x.__iter__() <==> iter(x) """ 887 pass 888 889 def __len__(self): # real signature unknown; restored from __doc__ 890 """ x.__len__() <==> len(x) """ 891 pass 892 893 def __le__(self, y): # real signature unknown; restored from __doc__ 894 """ x.__le__(y) <==> x<=y """ 895 pass 896 897 def __lt__(self, y): # real signature unknown; restored from __doc__ 898 """ x.__lt__(y) <==> x<y """ 899 pass 900 901 @staticmethod # known case of __new__ 902 def __new__(S, *more): # real signature unknown; restored from __doc__ 903 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 904 pass 905 906 def __ne__(self, y): # real signature unknown; restored from __doc__ 907 """ x.__ne__(y) <==> x!=y """ 908 pass 909 910 def __repr__(self): # real signature unknown; restored from __doc__ 911 """ x.__repr__() <==> repr(x) """ 912 pass 913 914 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 915 """ x.__setitem__(i, y) <==> x[i]=y """ 916 pass 917 918 def __sizeof__(self): # real signature unknown; restored from __doc__ 919 """ D.__sizeof__() -> size of D in memory, in bytes """ 920 pass 921 922 __hash__ = None 923 924 925 class enumerate(object): 926 """ 927 enumerate(iterable[, start]) -> iterator for index, value of iterable 928 929 Return an enumerate object. iterable must be another object that supports 930 iteration. The enumerate object yields pairs containing a count (from 931 start, which defaults to zero) and a value yielded by the iterable argument. 932 enumerate is useful for obtaining an indexed list: 933 (0, seq[0]), (1, seq[1]), (2, seq[2]), ... 934 """ 935 def next(self): # real signature unknown; restored from __doc__ 936 """ x.next() -> the next value, or raise StopIteration """ 937 pass 938 939 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 940 """ x.__getattribute__('name') <==> x.name """ 941 pass 942 943 def __init__(self, iterable, start=0): # known special case of enumerate.__init__ 944 """ x.__init__(...) initializes x; see help(type(x)) for signature """ 945 pass 946 947 def __iter__(self): # real signature unknown; restored from __doc__ 948 """ x.__iter__() <==> iter(x) """ 949 pass 950 951 @staticmethod # known case of __new__ 952 def __new__(S, *more): # real signature unknown; restored from __doc__ 953 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 954 pass 955 956 957 class file(object): 958 """ 959 file(name[, mode[, buffering]]) -> file object 960 961 Open a file. The mode can be 'r', 'w' or 'a' for reading (default), 962 writing or appending. The file will be created if it doesn't exist 963 when opened for writing or appending; it will be truncated when 964 opened for writing. Add a 'b' to the mode for binary files. 965 Add a '+' to the mode to allow simultaneous reading and writing. 966 If the buffering argument is given, 0 means unbuffered, 1 means line 967 buffered, and larger numbers specify the buffer size. The preferred way 968 to open a file is with the builtin open() function. 969 Add a 'U' to mode to open the file for input with universal newline 970 support. Any line ending in the input file will be seen as a '\n' 971 in Python. Also, a file so opened gains the attribute 'newlines'; 972 the value for this attribute is one of None (no newline read yet), 973 '\r', '\n', '\r\n' or a tuple containing all the newline types seen. 974 975 'U' cannot be combined with 'w' or '+' mode. 976 """ 977 def close(self): # real signature unknown; restored from __doc__ 978 """ 979 close() -> None or (perhaps) an integer. Close the file. 980 981 Sets data attribute .closed to True. A closed file cannot be used for 982 further I/O operations. close() may be called more than once without 983 error. Some kinds of file objects (for example, opened by popen()) 984 may return an exit status upon closing. 985 """ 986 pass 987 988 def fileno(self): # real signature unknown; restored from __doc__ 989 """ 990 fileno() -> integer "file descriptor". 991 992 This is needed for lower-level file interfaces, such os.read(). 993 """ 994 return 0 995 996 def flush(self): # real signature unknown; restored from __doc__ 997 """ flush() -> None. Flush the internal I/O buffer. """ 998 pass 999 1000 def isatty(self): # real signature unknown; restored from __doc__ 1001 """ isatty() -> true or false. True if the file is connected to a tty device. """ 1002 return False 1003 1004 def next(self): # real signature unknown; restored from __doc__ 1005 """ x.next() -> the next value, or raise StopIteration """ 1006 pass 1007 1008 def read(self, size=None): # real signature unknown; restored from __doc__ 1009 """ 1010 read([size]) -> read at most size bytes, returned as a string. 1011 1012 If the size argument is negative or omitted, read until EOF is reached. 1013 Notice that when in non-blocking mode, less data than what was requested 1014 may be returned, even if no size parameter was given. 1015 """ 1016 pass 1017 1018 def readinto(self): # real signature unknown; restored from __doc__ 1019 """ readinto() -> Undocumented. Don't use this; it may go away. """ 1020 pass 1021 1022 def readline(self, size=None): # real signature unknown; restored from __doc__ 1023 """ 1024 readline([size]) -> next line from the file, as a string. 1025 1026 Retain newline. A non-negative size argument limits the maximum 1027 number of bytes to return (an incomplete line may be returned then). 1028 Return an empty string at EOF. 1029 """ 1030 pass 1031 1032 def readlines(self, size=None): # real signature unknown; restored from __doc__ 1033 """ 1034 readlines([size]) -> list of strings, each a line from the file. 1035 1036 Call readline() repeatedly and return a list of the lines so read. 1037 The optional size argument, if given, is an approximate bound on the 1038 total number of bytes in the lines returned. 1039 """ 1040 return [] 1041 1042 def seek(self, offset, whence=None): # real signature unknown; restored from __doc__ 1043 """ 1044 seek(offset[, whence]) -> None. Move to new file position. 1045 1046 Argument offset is a byte count. Optional argument whence defaults to 1047 0 (offset from start of file, offset should be >= 0); other values are 1 1048 (move relative to current position, positive or negative), and 2 (move 1049 relative to end of file, usually negative, although many platforms allow 1050 seeking beyond the end of a file). If the file is opened in text mode, 1051 only offsets returned by tell() are legal. Use of other offsets causes 1052 undefined behavior. 1053 Note that not all file objects are seekable. 1054 """ 1055 pass 1056 1057 def tell(self): # real signature unknown; restored from __doc__ 1058 """ tell() -> current file position, an integer (may be a long integer). """ 1059 pass 1060 1061 def truncate(self, size=None): # real signature unknown; restored from __doc__ 1062 """ 1063 truncate([size]) -> None. Truncate the file to at most size bytes. 1064 1065 Size defaults to the current file position, as returned by tell(). 1066 """ 1067 pass 1068 1069 def write(self, p_str): # real signature unknown; restored from __doc__ 1070 """ 1071 write(str) -> None. Write string str to file. 1072 1073 Note that due to buffering, flush() or close() may be needed before 1074 the file on disk reflects the data written. 1075 """ 1076 pass 1077 1078 def writelines(self, sequence_of_strings): # real signature unknown; restored from __doc__ 1079 """ 1080 writelines(sequence_of_strings) -> None. Write the strings to the file. 1081 1082 Note that newlines are not added. The sequence can be any iterable object 1083 producing strings. This is equivalent to calling write() for each string. 1084 """ 1085 pass 1086 1087 def xreadlines(self): # real signature unknown; restored from __doc__ 1088 """ 1089 xreadlines() -> returns self. 1090 1091 For backward compatibility. File objects now include the performance 1092 optimizations previously implemented in the xreadlines module. 1093 """ 1094 pass 1095 1096 def __delattr__(self, name): # real signature unknown; restored from __doc__ 1097 """ x.__delattr__('name') <==> del x.name """ 1098 pass 1099 1100 def __enter__(self): # real signature unknown; restored from __doc__ 1101 """ __enter__() -> self. """ 1102 return self 1103 1104 def __exit__(self, *excinfo): # real signature unknown; restored from __doc__ 1105 """ __exit__(*excinfo) -> None. Closes the file. """ 1106 pass 1107 1108 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1109 """ x.__getattribute__('name') <==> x.name """ 1110 pass 1111 1112 def __init__(self, name, mode=None, buffering=None): # real signature unknown; restored from __doc__ 1113 pass 1114 1115 def __iter__(self): # real signature unknown; restored from __doc__ 1116 """ x.__iter__() <==> iter(x) """ 1117 pass 1118 1119 @staticmethod # known case of __new__ 1120 def __new__(S, *more): # real signature unknown; restored from __doc__ 1121 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1122 pass 1123 1124 def __repr__(self): # real signature unknown; restored from __doc__ 1125 """ x.__repr__() <==> repr(x) """ 1126 pass 1127 1128 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 1129 """ x.__setattr__('name', value) <==> x.name = value """ 1130 pass 1131 1132 closed = property(lambda self: True) 1133 """True if the file is closed 1134 1135 :type: bool 1136 """ 1137 1138 encoding = property(lambda self: '') 1139 """file encoding 1140 1141 :type: string 1142 """ 1143 1144 errors = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1145 """Unicode error handler""" 1146 1147 mode = property(lambda self: '') 1148 """file mode ('r', 'U', 'w', 'a', possibly with 'b' or '+' added) 1149 1150 :type: string 1151 """ 1152 1153 name = property(lambda self: '') 1154 """file name 1155 1156 :type: string 1157 """ 1158 1159 newlines = property(lambda self: '') 1160 """end-of-line convention used in this file 1161 1162 :type: string 1163 """ 1164 1165 softspace = property(lambda self: True) 1166 """flag indicating that a space needs to be printed; used by print 1167 1168 :type: bool 1169 """ 1170 1171 1172 1173 class float(object): 1174 """ 1175 float(x) -> floating point number 1176 1177 Convert a string or number to a floating point number, if possible. 1178 """ 1179 def as_integer_ratio(self): # real signature unknown; restored from __doc__ 1180 """ 1181 float.as_integer_ratio() -> (int, int) 1182 1183 Return a pair of integers, whose ratio is exactly equal to the original 1184 float and with a positive denominator. 1185 Raise OverflowError on infinities and a ValueError on NaNs. 1186 1187 >>> (10.0).as_integer_ratio() 1188 (10, 1) 1189 >>> (0.0).as_integer_ratio() 1190 (0, 1) 1191 >>> (-.25).as_integer_ratio() 1192 (-1, 4) 1193 """ 1194 pass 1195 1196 def conjugate(self, *args, **kwargs): # real signature unknown 1197 """ Return self, the complex conjugate of any float. """ 1198 pass 1199 1200 def fromhex(self, string): # real signature unknown; restored from __doc__ 1201 """ 1202 float.fromhex(string) -> float 1203 1204 Create a floating-point number from a hexadecimal string. 1205 >>> float.fromhex('0x1.ffffp10') 1206 2047.984375 1207 >>> float.fromhex('-0x1p-1074') 1208 -4.9406564584124654e-324 1209 """ 1210 return 0.0 1211 1212 def hex(self): # real signature unknown; restored from __doc__ 1213 """ 1214 float.hex() -> string 1215 1216 Return a hexadecimal representation of a floating-point number. 1217 >>> (-0.1).hex() 1218 '-0x1.999999999999ap-4' 1219 >>> 3.14159.hex() 1220 '0x1.921f9f01b866ep+1' 1221 """ 1222 return "" 1223 1224 def is_integer(self, *args, **kwargs): # real signature unknown 1225 """ Return True if the float is an integer. """ 1226 pass 1227 1228 def __abs__(self): # real signature unknown; restored from __doc__ 1229 """ x.__abs__() <==> abs(x) """ 1230 pass 1231 1232 def __add__(self, y): # real signature unknown; restored from __doc__ 1233 """ x.__add__(y) <==> x+y """ 1234 pass 1235 1236 def __coerce__(self, y): # real signature unknown; restored from __doc__ 1237 """ x.__coerce__(y) <==> coerce(x, y) """ 1238 pass 1239 1240 def __divmod__(self, y): # real signature unknown; restored from __doc__ 1241 """ x.__divmod__(y) <==> divmod(x, y) """ 1242 pass 1243 1244 def __div__(self, y): # real signature unknown; restored from __doc__ 1245 """ x.__div__(y) <==> x/y """ 1246 pass 1247 1248 def __eq__(self, y): # real signature unknown; restored from __doc__ 1249 """ x.__eq__(y) <==> x==y """ 1250 pass 1251 1252 def __float__(self): # real signature unknown; restored from __doc__ 1253 """ x.__float__() <==> float(x) """ 1254 pass 1255 1256 def __floordiv__(self, y): # real signature unknown; restored from __doc__ 1257 """ x.__floordiv__(y) <==> x//y """ 1258 pass 1259 1260 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 1261 """ 1262 float.__format__(format_spec) -> string 1263 1264 Formats the float according to format_spec. 1265 """ 1266 return "" 1267 1268 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1269 """ x.__getattribute__('name') <==> x.name """ 1270 pass 1271 1272 def __getformat__(self, typestr): # real signature unknown; restored from __doc__ 1273 """ 1274 float.__getformat__(typestr) -> string 1275 1276 You probably don't want to use this function. It exists mainly to be 1277 used in Python's test suite. 1278 1279 typestr must be 'double' or 'float'. This function returns whichever of 1280 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the 1281 format of floating point numbers used by the C type named by typestr. 1282 """ 1283 return "" 1284 1285 def __getnewargs__(self, *args, **kwargs): # real signature unknown 1286 pass 1287 1288 def __ge__(self, y): # real signature unknown; restored from __doc__ 1289 """ x.__ge__(y) <==> x>=y """ 1290 pass 1291 1292 def __gt__(self, y): # real signature unknown; restored from __doc__ 1293 """ x.__gt__(y) <==> x>y """ 1294 pass 1295 1296 def __hash__(self): # real signature unknown; restored from __doc__ 1297 """ x.__hash__() <==> hash(x) """ 1298 pass 1299 1300 def __init__(self, x): # real signature unknown; restored from __doc__ 1301 pass 1302 1303 def __int__(self): # real signature unknown; restored from __doc__ 1304 """ x.__int__() <==> int(x) """ 1305 pass 1306 1307 def __le__(self, y): # real signature unknown; restored from __doc__ 1308 """ x.__le__(y) <==> x<=y """ 1309 pass 1310 1311 def __long__(self): # real signature unknown; restored from __doc__ 1312 """ x.__long__() <==> long(x) """ 1313 pass 1314 1315 def __lt__(self, y): # real signature unknown; restored from __doc__ 1316 """ x.__lt__(y) <==> x<y """ 1317 pass 1318 1319 def __mod__(self, y): # real signature unknown; restored from __doc__ 1320 """ x.__mod__(y) <==> x%y """ 1321 pass 1322 1323 def __mul__(self, y): # real signature unknown; restored from __doc__ 1324 """ x.__mul__(y) <==> x*y """ 1325 pass 1326 1327 def __neg__(self): # real signature unknown; restored from __doc__ 1328 """ x.__neg__() <==> -x """ 1329 pass 1330 1331 @staticmethod # known case of __new__ 1332 def __new__(S, *more): # real signature unknown; restored from __doc__ 1333 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1334 pass 1335 1336 def __ne__(self, y): # real signature unknown; restored from __doc__ 1337 """ x.__ne__(y) <==> x!=y """ 1338 pass 1339 1340 def __nonzero__(self): # real signature unknown; restored from __doc__ 1341 """ x.__nonzero__() <==> x != 0 """ 1342 pass 1343 1344 def __pos__(self): # real signature unknown; restored from __doc__ 1345 """ x.__pos__() <==> +x """ 1346 pass 1347 1348 def __pow__(self, y, z=None): # real signature unknown; restored from __doc__ 1349 """ x.__pow__(y[, z]) <==> pow(x, y[, z]) """ 1350 pass 1351 1352 def __radd__(self, y): # real signature unknown; restored from __doc__ 1353 """ x.__radd__(y) <==> y+x """ 1354 pass 1355 1356 def __rdivmod__(self, y): # real signature unknown; restored from __doc__ 1357 """ x.__rdivmod__(y) <==> divmod(y, x) """ 1358 pass 1359 1360 def __rdiv__(self, y): # real signature unknown; restored from __doc__ 1361 """ x.__rdiv__(y) <==> y/x """ 1362 pass 1363 1364 def __repr__(self): # real signature unknown; restored from __doc__ 1365 """ x.__repr__() <==> repr(x) """ 1366 pass 1367 1368 def __rfloordiv__(self, y): # real signature unknown; restored from __doc__ 1369 """ x.__rfloordiv__(y) <==> y//x """ 1370 pass 1371 1372 def __rmod__(self, y): # real signature unknown; restored from __doc__ 1373 """ x.__rmod__(y) <==> y%x """ 1374 pass 1375 1376 def __rmul__(self, y): # real signature unknown; restored from __doc__ 1377 """ x.__rmul__(y) <==> y*x """ 1378 pass 1379 1380 def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__ 1381 """ y.__rpow__(x[, z]) <==> pow(x, y[, z]) """ 1382 pass 1383 1384 def __rsub__(self, y): # real signature unknown; restored from __doc__ 1385 """ x.__rsub__(y) <==> y-x """ 1386 pass 1387 1388 def __rtruediv__(self, y): # real signature unknown; restored from __doc__ 1389 """ x.__rtruediv__(y) <==> y/x """ 1390 pass 1391 1392 def __setformat__(self, typestr, fmt): # real signature unknown; restored from __doc__ 1393 """ 1394 float.__setformat__(typestr, fmt) -> None 1395 1396 You probably don't want to use this function. It exists mainly to be 1397 used in Python's test suite. 1398 1399 typestr must be 'double' or 'float'. fmt must be one of 'unknown', 1400 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be 1401 one of the latter two if it appears to match the underlying C reality. 1402 1403 Override the automatic determination of C-level floating point type. 1404 This affects how floats are converted to and from binary strings. 1405 """ 1406 pass 1407 1408 def __str__(self): # real signature unknown; restored from __doc__ 1409 """ x.__str__() <==> str(x) """ 1410 pass 1411 1412 def __sub__(self, y): # real signature unknown; restored from __doc__ 1413 """ x.__sub__(y) <==> x-y """ 1414 pass 1415 1416 def __truediv__(self, y): # real signature unknown; restored from __doc__ 1417 """ x.__truediv__(y) <==> x/y """ 1418 pass 1419 1420 def __trunc__(self, *args, **kwargs): # real signature unknown 1421 """ Return the Integral closest to x between 0 and x. """ 1422 pass 1423 1424 imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1425 """the imaginary part of a complex number""" 1426 1427 real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1428 """the real part of a complex number""" 1429 1430 1431 1432 class frozenset(object): 1433 """ 1434 frozenset() -> empty frozenset object 1435 frozenset(iterable) -> frozenset object 1436 1437 Build an immutable unordered collection of unique elements. 1438 """ 1439 def copy(self, *args, **kwargs): # real signature unknown 1440 """ Return a shallow copy of a set. """ 1441 pass 1442 1443 def difference(self, *args, **kwargs): # real signature unknown 1444 """ 1445 Return the difference of two or more sets as a new set. 1446 1447 (i.e. all elements that are in this set but not the others.) 1448 """ 1449 pass 1450 1451 def intersection(self, *args, **kwargs): # real signature unknown 1452 """ 1453 Return the intersection of two or more sets as a new set. 1454 1455 (i.e. elements that are common to all of the sets.) 1456 """ 1457 pass 1458 1459 def isdisjoint(self, *args, **kwargs): # real signature unknown 1460 """ Return True if two sets have a null intersection. """ 1461 pass 1462 1463 def issubset(self, *args, **kwargs): # real signature unknown 1464 """ Report whether another set contains this set. """ 1465 pass 1466 1467 def issuperset(self, *args, **kwargs): # real signature unknown 1468 """ Report whether this set contains another set. """ 1469 pass 1470 1471 def symmetric_difference(self, *args, **kwargs): # real signature unknown 1472 """ 1473 Return the symmetric difference of two sets as a new set. 1474 1475 (i.e. all elements that are in exactly one of the sets.) 1476 """ 1477 pass 1478 1479 def union(self, *args, **kwargs): # real signature unknown 1480 """ 1481 Return the union of sets as a new set. 1482 1483 (i.e. all elements that are in either set.) 1484 """ 1485 pass 1486 1487 def __and__(self, y): # real signature unknown; restored from __doc__ 1488 """ x.__and__(y) <==> x&y """ 1489 pass 1490 1491 def __cmp__(self, y): # real signature unknown; restored from __doc__ 1492 """ x.__cmp__(y) <==> cmp(x,y) """ 1493 pass 1494 1495 def __contains__(self, y): # real signature unknown; restored from __doc__ 1496 """ x.__contains__(y) <==> y in x. """ 1497 pass 1498 1499 def __eq__(self, y): # real signature unknown; restored from __doc__ 1500 """ x.__eq__(y) <==> x==y """ 1501 pass 1502 1503 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1504 """ x.__getattribute__('name') <==> x.name """ 1505 pass 1506 1507 def __ge__(self, y): # real signature unknown; restored from __doc__ 1508 """ x.__ge__(y) <==> x>=y """ 1509 pass 1510 1511 def __gt__(self, y): # real signature unknown; restored from __doc__ 1512 """ x.__gt__(y) <==> x>y """ 1513 pass 1514 1515 def __hash__(self): # real signature unknown; restored from __doc__ 1516 """ x.__hash__() <==> hash(x) """ 1517 pass 1518 1519 def __init__(self, seq=()): # known special case of frozenset.__init__ 1520 """ x.__init__(...) initializes x; see help(type(x)) for signature """ 1521 pass 1522 1523 def __iter__(self): # real signature unknown; restored from __doc__ 1524 """ x.__iter__() <==> iter(x) """ 1525 pass 1526 1527 def __len__(self): # real signature unknown; restored from __doc__ 1528 """ x.__len__() <==> len(x) """ 1529 pass 1530 1531 def __le__(self, y): # real signature unknown; restored from __doc__ 1532 """ x.__le__(y) <==> x<=y """ 1533 pass 1534 1535 def __lt__(self, y): # real signature unknown; restored from __doc__ 1536 """ x.__lt__(y) <==> x<y """ 1537 pass 1538 1539 @staticmethod # known case of __new__ 1540 def __new__(S, *more): # real signature unknown; restored from __doc__ 1541 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1542 pass 1543 1544 def __ne__(self, y): # real signature unknown; restored from __doc__ 1545 """ x.__ne__(y) <==> x!=y """ 1546 pass 1547 1548 def __or__(self, y): # real signature unknown; restored from __doc__ 1549 """ x.__or__(y) <==> x|y """ 1550 pass 1551 1552 def __rand__(self, y): # real signature unknown; restored from __doc__ 1553 """ x.__rand__(y) <==> y&x """ 1554 pass 1555 1556 def __reduce__(self, *args, **kwargs): # real signature unknown 1557 """ Return state information for pickling. """ 1558 pass 1559 1560 def __repr__(self): # real signature unknown; restored from __doc__ 1561 """ x.__repr__() <==> repr(x) """ 1562 pass 1563 1564 def __ror__(self, y): # real signature unknown; restored from __doc__ 1565 """ x.__ror__(y) <==> y|x """ 1566 pass 1567 1568 def __rsub__(self, y): # real signature unknown; restored from __doc__ 1569 """ x.__rsub__(y) <==> y-x """ 1570 pass 1571 1572 def __rxor__(self, y): # real signature unknown; restored from __doc__ 1573 """ x.__rxor__(y) <==> y^x """ 1574 pass 1575 1576 def __sizeof__(self): # real signature unknown; restored from __doc__ 1577 """ S.__sizeof__() -> size of S in memory, in bytes """ 1578 pass 1579 1580 def __sub__(self, y): # real signature unknown; restored from __doc__ 1581 """ x.__sub__(y) <==> x-y """ 1582 pass 1583 1584 def __xor__(self, y): # real signature unknown; restored from __doc__ 1585 """ x.__xor__(y) <==> x^y """ 1586 pass 1587 1588 1589 class list(object): 1590 """ 1591 list() -> new empty list 1592 list(iterable) -> new list initialized from iterable's items 1593 """ 1594 def append(self, p_object): # real signature unknown; restored from __doc__ 1595 """ L.append(object) -- append object to end """ 1596 pass 1597 1598 def count(self, value): # real signature unknown; restored from __doc__ 1599 """ L.count(value) -> integer -- return number of occurrences of value """ 1600 return 0 1601 1602 def extend(self, iterable): # real signature unknown; restored from __doc__ 1603 """ L.extend(iterable) -- extend list by appending elements from the iterable """ 1604 pass 1605 1606 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 1607 """ 1608 L.index(value, [start, [stop]]) -> integer -- return first index of value. 1609 Raises ValueError if the value is not present. 1610 """ 1611 return 0 1612 1613 def insert(self, index, p_object): # real signature unknown; restored from __doc__ 1614 """ L.insert(index, object) -- insert object before index """ 1615 pass 1616 1617 def pop(self, index=None): # real signature unknown; restored from __doc__ 1618 """ 1619 L.pop([index]) -> item -- remove and return item at index (default last). 1620 Raises IndexError if list is empty or index is out of range. 1621 """ 1622 pass 1623 1624 def remove(self, value): # real signature unknown; restored from __doc__ 1625 """ 1626 L.remove(value) -- remove first occurrence of value. 1627 Raises ValueError if the value is not present. 1628 """ 1629 pass 1630 1631 def reverse(self): # real signature unknown; restored from __doc__ 1632 """ L.reverse() -- reverse *IN PLACE* """ 1633 pass 1634 1635 def sort(self, cmp=None, key=None, reverse=False): # real signature unknown; restored from __doc__ 1636 """ 1637 L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; 1638 cmp(x, y) -> -1, 0, 1 1639 """ 1640 pass 1641 1642 def __add__(self, y): # real signature unknown; restored from __doc__ 1643 """ x.__add__(y) <==> x+y """ 1644 pass 1645 1646 def __contains__(self, y): # real signature unknown; restored from __doc__ 1647 """ x.__contains__(y) <==> y in x """ 1648 pass 1649 1650 def __delitem__(self, y): # real signature unknown; restored from __doc__ 1651 """ x.__delitem__(y) <==> del x[y] """ 1652 pass 1653 1654 def __delslice__(self, i, j): # real signature unknown; restored from __doc__ 1655 """ 1656 x.__delslice__(i, j) <==> del x[i:j] 1657 1658 Use of negative indices is not supported. 1659 """ 1660 pass 1661 1662 def __eq__(self, y): # real signature unknown; restored from __doc__ 1663 """ x.__eq__(y) <==> x==y """ 1664 pass 1665 1666 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1667 """ x.__getattribute__('name') <==> x.name """ 1668 pass 1669 1670 def __getitem__(self, y): # real signature unknown; restored from __doc__ 1671 """ x.__getitem__(y) <==> x[y] """ 1672 pass 1673 1674 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 1675 """ 1676 x.__getslice__(i, j) <==> x[i:j] 1677 1678 Use of negative indices is not supported. 1679 """ 1680 pass 1681 1682 def __ge__(self, y): # real signature unknown; restored from __doc__ 1683 """ x.__ge__(y) <==> x>=y """ 1684 pass 1685 1686 def __gt__(self, y): # real signature unknown; restored from __doc__ 1687 """ x.__gt__(y) <==> x>y """ 1688 pass 1689 1690 def __iadd__(self, y): # real signature unknown; restored from __doc__ 1691 """ x.__iadd__(y) <==> x+=y """ 1692 pass 1693 1694 def __imul__(self, y): # real signature unknown; restored from __doc__ 1695 """ x.__imul__(y) <==> x*=y """ 1696 pass 1697 1698 def __init__(self, seq=()): # known special case of list.__init__ 1699 """ 1700 list() -> new empty list 1701 list(iterable) -> new list initialized from iterable's items 1702 # (copied from class doc) 1703 """ 1704 pass 1705 1706 def __iter__(self): # real signature unknown; restored from __doc__ 1707 """ x.__iter__() <==> iter(x) """ 1708 pass 1709 1710 def __len__(self): # real signature unknown; restored from __doc__ 1711 """ x.__len__() <==> len(x) """ 1712 pass 1713 1714 def __le__(self, y): # real signature unknown; restored from __doc__ 1715 """ x.__le__(y) <==> x<=y """ 1716 pass 1717 1718 def __lt__(self, y): # real signature unknown; restored from __doc__ 1719 """ x.__lt__(y) <==> x<y """ 1720 pass 1721 1722 def __mul__(self, n): # real signature unknown; restored from __doc__ 1723 """ x.__mul__(n) <==> x*n """ 1724 pass 1725 1726 @staticmethod # known case of __new__ 1727 def __new__(S, *more): # real signature unknown; restored from __doc__ 1728 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1729 pass 1730 1731 def __ne__(self, y): # real signature unknown; restored from __doc__ 1732 """ x.__ne__(y) <==> x!=y """ 1733 pass 1734 1735 def __repr__(self): # real signature unknown; restored from __doc__ 1736 """ x.__repr__() <==> repr(x) """ 1737 pass 1738 1739 def __reversed__(self): # real signature unknown; restored from __doc__ 1740 """ L.__reversed__() -- return a reverse iterator over the list """ 1741 pass 1742 1743 def __rmul__(self, n): # real signature unknown; restored from __doc__ 1744 """ x.__rmul__(n) <==> n*x """ 1745 pass 1746 1747 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 1748 """ x.__setitem__(i, y) <==> x[i]=y """ 1749 pass 1750 1751 def __setslice__(self, i, j, y): # real signature unknown; restored from __doc__ 1752 """ 1753 x.__setslice__(i, j, y) <==> x[i:j]=y 1754 1755 Use of negative indices is not supported. 1756 """ 1757 pass 1758 1759 def __sizeof__(self): # real signature unknown; restored from __doc__ 1760 """ L.__sizeof__() -- size of L in memory, in bytes """ 1761 pass 1762 1763 __hash__ = None 1764 1765 1766 class long(object): 1767 """ 1768 long(x=0) -> long 1769 long(x, base=10) -> long 1770 1771 Convert a number or string to a long integer, or return 0L if no arguments 1772 are given. If x is floating point, the conversion truncates towards zero. 1773 1774 If x is not a number or if base is given, then x must be a string or 1775 Unicode object representing an integer literal in the given base. The 1776 literal can be preceded by '+' or '-' and be surrounded by whitespace. 1777 The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to 1778 interpret the base from the string as an integer literal. 1779 >>> int('0b100', base=0) 1780 4L 1781 """ 1782 def bit_length(self): # real signature unknown; restored from __doc__ 1783 """ 1784 long.bit_length() -> int or long 1785 1786 Number of bits necessary to represent self in binary. 1787 >>> bin(37L) 1788 '0b100101' 1789 >>> (37L).bit_length() 1790 6 1791 """ 1792 return 0 1793 1794 def conjugate(self, *args, **kwargs): # real signature unknown 1795 """ Returns self, the complex conjugate of any long. """ 1796 pass 1797 1798 def __abs__(self): # real signature unknown; restored from __doc__ 1799 """ x.__abs__() <==> abs(x) """ 1800 pass 1801 1802 def __add__(self, y): # real signature unknown; restored from __doc__ 1803 """ x.__add__(y) <==> x+y """ 1804 pass 1805 1806 def __and__(self, y): # real signature unknown; restored from __doc__ 1807 """ x.__and__(y) <==> x&y """ 1808 pass 1809 1810 def __cmp__(self, y): # real signature unknown; restored from __doc__ 1811 """ x.__cmp__(y) <==> cmp(x,y) """ 1812 pass 1813 1814 def __coerce__(self, y): # real signature unknown; restored from __doc__ 1815 """ x.__coerce__(y) <==> coerce(x, y) """ 1816 pass 1817 1818 def __divmod__(self, y): # real signature unknown; restored from __doc__ 1819 """ x.__divmod__(y) <==> divmod(x, y) """ 1820 pass 1821 1822 def __div__(self, y): # real signature unknown; restored from __doc__ 1823 """ x.__div__(y) <==> x/y """ 1824 pass 1825 1826 def __float__(self): # real signature unknown; restored from __doc__ 1827 """ x.__float__() <==> float(x) """ 1828 pass 1829 1830 def __floordiv__(self, y): # real signature unknown; restored from __doc__ 1831 """ x.__floordiv__(y) <==> x//y """ 1832 pass 1833 1834 def __format__(self, *args, **kwargs): # real signature unknown 1835 pass 1836 1837 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1838 """ x.__getattribute__('name') <==> x.name """ 1839 pass 1840 1841 def __getnewargs__(self, *args, **kwargs): # real signature unknown 1842 pass 1843 1844 def __hash__(self): # real signature unknown; restored from __doc__ 1845 """ x.__hash__() <==> hash(x) """ 1846 pass 1847 1848 def __hex__(self): # real signature unknown; restored from __doc__ 1849 """ x.__hex__() <==> hex(x) """ 1850 pass 1851 1852 def __index__(self): # real signature unknown; restored from __doc__ 1853 """ x[y:z] <==> x[y.__index__():z.__index__()] """ 1854 pass 1855 1856 def __init__(self, x=0): # real signature unknown; restored from __doc__ 1857 pass 1858 1859 def __int__(self): # real signature unknown; restored from __doc__ 1860 """ x.__int__() <==> int(x) """ 1861 pass 1862 1863 def __invert__(self): # real signature unknown; restored from __doc__ 1864 """ x.__invert__() <==> ~x """ 1865 pass 1866 1867 def __long__(self): # real signature unknown; restored from __doc__ 1868 """ x.__long__() <==> long(x) """ 1869 pass 1870 1871 def __lshift__(self, y): # real signature unknown; restored from __doc__ 1872 """ x.__lshift__(y) <==> x<<y """ 1873 pass 1874 1875 def __mod__(self, y): # real signature unknown; restored from __doc__ 1876 """ x.__mod__(y) <==> x%y """ 1877 pass 1878 1879 def __mul__(self, y): # real signature unknown; restored from __doc__ 1880 """ x.__mul__(y) <==> x*y """ 1881 pass 1882 1883 def __neg__(self): # real signature unknown; restored from __doc__ 1884 """ x.__neg__() <==> -x """ 1885 pass 1886 1887 @staticmethod # known case of __new__ 1888 def __new__(S, *more): # real signature unknown; restored from __doc__ 1889 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1890 pass 1891 1892 def __nonzero__(self): # real signature unknown; restored from __doc__ 1893 """ x.__nonzero__() <==> x != 0 """ 1894 pass 1895 1896 def __oct__(self): # real signature unknown; restored from __doc__ 1897 """ x.__oct__() <==> oct(x) """ 1898 pass 1899 1900 def __or__(self, y): # real signature unknown; restored from __doc__ 1901 """ x.__or__(y) <==> x|y """ 1902 pass 1903 1904 def __pos__(self): # real signature unknown; restored from __doc__ 1905 """ x.__pos__() <==> +x """ 1906 pass 1907 1908 def __pow__(self, y, z=None): # real signature unknown; restored from __doc__ 1909 """ x.__pow__(y[, z]) <==> pow(x, y[, z]) """ 1910 pass 1911 1912 def __radd__(self, y): # real signature unknown; restored from __doc__ 1913 """ x.__radd__(y) <==> y+x """ 1914 pass 1915 1916 def __rand__(self, y): # real signature unknown; restored from __doc__ 1917 """ x.__rand__(y) <==> y&x """ 1918 pass 1919 1920 def __rdivmod__(self, y): # real signature unknown; restored from __doc__ 1921 """ x.__rdivmod__(y) <==> divmod(y, x) """ 1922 pass 1923 1924 def __rdiv__(self, y): # real signature unknown; restored from __doc__ 1925 """ x.__rdiv__(y) <==> y/x """ 1926 pass 1927 1928 def __repr__(self): # real signature unknown; restored from __doc__ 1929 """ x.__repr__() <==> repr(x) """ 1930 pass 1931 1932 def __rfloordiv__(self, y): # real signature unknown; restored from __doc__ 1933 """ x.__rfloordiv__(y) <==> y//x """ 1934 pass 1935 1936 def __rlshift__(self, y): # real signature unknown; restored from __doc__ 1937 """ x.__rlshift__(y) <==> y<<x """ 1938 pass 1939 1940 def __rmod__(self, y): # real signature unknown; restored from __doc__ 1941 """ x.__rmod__(y) <==> y%x """ 1942 pass 1943 1944 def __rmul__(self, y): # real signature unknown; restored from __doc__ 1945 """ x.__rmul__(y) <==> y*x """ 1946 pass 1947 1948 def __ror__(self, y): # real signature unknown; restored from __doc__ 1949 """ x.__ror__(y) <==> y|x """ 1950 pass 1951 1952 def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__ 1953 """ y.__rpow__(x[, z]) <==> pow(x, y[, z]) """ 1954 pass 1955 1956 def __rrshift__(self, y): # real signature unknown; restored from __doc__ 1957 """ x.__rrshift__(y) <==> y>>x """ 1958 pass 1959 1960 def __rshift__(self, y): # real signature unknown; restored from __doc__ 1961 """ x.__rshift__(y) <==> x>>y """ 1962 pass 1963 1964 def __rsub__(self, y): # real signature unknown; restored from __doc__ 1965 """ x.__rsub__(y) <==> y-x """ 1966 pass 1967 1968 def __rtruediv__(self, y): # real signature unknown; restored from __doc__ 1969 """ x.__rtruediv__(y) <==> y/x """ 1970 pass 1971 1972 def __rxor__(self, y): # real signature unknown; restored from __doc__ 1973 """ x.__rxor__(y) <==> y^x """ 1974 pass 1975 1976 def __sizeof__(self, *args, **kwargs): # real signature unknown 1977 """ Returns size in memory, in bytes """ 1978 pass 1979 1980 def __str__(self): # real signature unknown; restored from __doc__ 1981 """ x.__str__() <==> str(x) """ 1982 pass 1983 1984 def __sub__(self, y): # real signature unknown; restored from __doc__ 1985 """ x.__sub__(y) <==> x-y """ 1986 pass 1987 1988 def __truediv__(self, y): # real signature unknown; restored from __doc__ 1989 """ x.__truediv__(y) <==> x/y """ 1990 pass 1991 1992 def __trunc__(self, *args, **kwargs): # real signature unknown 1993 """ Truncating an Integral returns itself. """ 1994 pass 1995 1996 def __xor__(self, y): # real signature unknown; restored from __doc__ 1997 """ x.__xor__(y) <==> x^y """ 1998 pass 1999 2000 denominator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2001 """the denominator of a rational number in lowest terms""" 2002 2003 imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2004 """the imaginary part of a complex number""" 2005 2006 numerator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2007 """the numerator of a rational number in lowest terms""" 2008 2009 real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2010 """the real part of a complex number""" 2011 2012 2013 2014 class memoryview(object): 2015 """ 2016 memoryview(object) 2017 2018 Create a new memoryview object which references the given object. 2019 """ 2020 def tobytes(self, *args, **kwargs): # real signature unknown 2021 pass 2022 2023 def tolist(self, *args, **kwargs): # real signature unknown 2024 pass 2025 2026 def __delitem__(self, y): # real signature unknown; restored from __doc__ 2027 """ x.__delitem__(y) <==> del x[y] """ 2028 pass 2029 2030 def __eq__(self, y): # real signature unknown; restored from __doc__ 2031 """ x.__eq__(y) <==> x==y """ 2032 pass 2033 2034 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2035 """ x.__getattribute__('name') <==> x.name """ 2036 pass 2037 2038 def __getitem__(self, y): # real signature unknown; restored from __doc__ 2039 """ x.__getitem__(y) <==> x[y] """ 2040 pass 2041 2042 def __ge__(self, y): # real signature unknown; restored from __doc__ 2043 """ x.__ge__(y) <==> x>=y """ 2044 pass 2045 2046 def __gt__(self, y): # real signature unknown; restored from __doc__ 2047 """ x.__gt__(y) <==> x>y """ 2048 pass 2049 2050 def __init__(self, p_object): # real signature unknown; restored from __doc__ 2051 pass 2052 2053 def __len__(self): # real signature unknown; restored from __doc__ 2054 """ x.__len__() <==> len(x) """ 2055 pass 2056 2057 def __le__(self, y): # real signature unknown; restored from __doc__ 2058 """ x.__le__(y) <==> x<=y """ 2059 pass 2060 2061 def __lt__(self, y): # real signature unknown; restored from __doc__ 2062 """ x.__lt__(y) <==> x<y """ 2063 pass 2064 2065 @staticmethod # known case of __new__ 2066 def __new__(S, *more): # real signature unknown; restored from __doc__ 2067 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2068 pass 2069 2070 def __ne__(self, y): # real signature unknown; restored from __doc__ 2071 """ x.__ne__(y) <==> x!=y """ 2072 pass 2073 2074 def __repr__(self): # real signature unknown; restored from __doc__ 2075 """ x.__repr__() <==> repr(x) """ 2076 pass 2077 2078 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 2079 """ x.__setitem__(i, y) <==> x[i]=y """ 2080 pass 2081 2082 format = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2083 2084 itemsize = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2085 2086 ndim = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2087 2088 readonly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2089 2090 shape = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2091 2092 strides = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2093 2094 suboffsets = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2095 2096 2097 2098 class property(object): 2099 """ 2100 property(fget=None, fset=None, fdel=None, doc=None) -> property attribute 2101 2102 fget is a function to be used for getting an attribute value, and likewise 2103 fset is a function for setting, and fdel a function for del'ing, an 2104 attribute. Typical use is to define a managed attribute x: 2105 2106 class C(object): 2107 def getx(self): return self._x 2108 def setx(self, value): self._x = value 2109 def delx(self): del self._x 2110 x = property(getx, setx, delx, "I'm the 'x' property.") 2111 2112 Decorators make defining new properties or modifying existing ones easy: 2113 2114 class C(object): 2115 @property 2116 def x(self): 2117 "I am the 'x' property." 2118 return self._x 2119 @x.setter 2120 def x(self, value): 2121 self._x = value 2122 @x.deleter 2123 def x(self): 2124 del self._x 2125 """ 2126 def deleter(self, *args, **kwargs): # real signature unknown 2127 """ Descriptor to change the deleter on a property. """ 2128 pass 2129 2130 def getter(self, *args, **kwargs): # real signature unknown 2131 """ Descriptor to change the getter on a property. """ 2132 pass 2133 2134 def setter(self, *args, **kwargs): # real signature unknown 2135 """ Descriptor to change the setter on a property. """ 2136 pass 2137 2138 def __delete__(self, obj): # real signature unknown; restored from __doc__ 2139 """ descr.__delete__(obj) """ 2140 pass 2141 2142 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2143 """ x.__getattribute__('name') <==> x.name """ 2144 pass 2145 2146 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 2147 """ descr.__get__(obj[, type]) -> value """ 2148 pass 2149 2150 def __init__(self, fget=None, fset=None, fdel=None, doc=None): # known special case of property.__init__ 2151 """ 2152 property(fget=None, fset=None, fdel=None, doc=None) -> property attribute 2153 2154 fget is a function to be used for getting an attribute value, and likewise 2155 fset is a function for setting, and fdel a function for del'ing, an 2156 attribute. Typical use is to define a managed attribute x: 2157 2158 class C(object): 2159 def getx(self): return self._x 2160 def setx(self, value): self._x = value 2161 def delx(self): del self._x 2162 x = property(getx, setx, delx, "I'm the 'x' property.") 2163 2164 Decorators make defining new properties or modifying existing ones easy: 2165 2166 class C(object): 2167 @property 2168 def x(self): 2169 "I am the 'x' property." 2170 return self._x 2171 @x.setter 2172 def x(self, value): 2173 self._x = value 2174 @x.deleter 2175 def x(self): 2176 del self._x 2177 2178 # (copied from class doc) 2179 """ 2180 pass 2181 2182 @staticmethod # known case of __new__ 2183 def __new__(S, *more): # real signature unknown; restored from __doc__ 2184 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2185 pass 2186 2187 def __set__(self, obj, value): # real signature unknown; restored from __doc__ 2188 """ descr.__set__(obj, value) """ 2189 pass 2190 2191 fdel = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2192 2193 fget = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2194 2195 fset = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2196 2197 2198 2199 class reversed(object): 2200 """ 2201 reversed(sequence) -> reverse iterator over values of the sequence 2202 2203 Return a reverse iterator 2204 """ 2205 def next(self): # real signature unknown; restored from __doc__ 2206 """ x.next() -> the next value, or raise StopIteration """ 2207 pass 2208 2209 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2210 """ x.__getattribute__('name') <==> x.name """ 2211 pass 2212 2213 def __init__(self, sequence): # real signature unknown; restored from __doc__ 2214 pass 2215 2216 def __iter__(self): # real signature unknown; restored from __doc__ 2217 """ x.__iter__() <==> iter(x) """ 2218 pass 2219 2220 def __length_hint__(self, *args, **kwargs): # real signature unknown 2221 """ Private method returning an estimate of len(list(it)). """ 2222 pass 2223 2224 @staticmethod # known case of __new__ 2225 def __new__(S, *more): # real signature unknown; restored from __doc__ 2226 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2227 pass 2228 2229 2230 class set(object): 2231 """ 2232 set() -> new empty set object 2233 set(iterable) -> new set object 2234 2235 Build an unordered collection of unique elements. 2236 """ 2237 def add(self, *args, **kwargs): # real signature unknown 2238 """ 2239 Add an element to a set. 2240 2241 This has no effect if the element is already present. 2242 """ 2243 pass 2244 2245 def clear(self, *args, **kwargs): # real signature unknown 2246 """ Remove all elements from this set. """ 2247 pass 2248 2249 def copy(self, *args, **kwargs): # real signature unknown 2250 """ Return a shallow copy of a set. """ 2251 pass 2252 2253 def difference(self, *args, **kwargs): # real signature unknown 2254 """ 2255 Return the difference of two or more sets as a new set. 2256 2257 (i.e. all elements that are in this set but not the others.) 2258 """ 2259 pass 2260 2261 def difference_update(self, *args, **kwargs): # real signature unknown 2262 """ Remove all elements of another set from this set. """ 2263 pass 2264 2265 def discard(self, *args, **kwargs): # real signature unknown 2266 """ 2267 Remove an element from a set if it is a member. 2268 2269 If the element is not a member, do nothing. 2270 """ 2271 pass 2272 2273 def intersection(self, *args, **kwargs): # real signature unknown 2274 """ 2275 Return the intersection of two or more sets as a new set. 2276 2277 (i.e. elements that are common to all of the sets.) 2278 """ 2279 pass 2280 2281 def intersection_update(self, *args, **kwargs): # real signature unknown 2282 """ Update a set with the intersection of itself and another. """ 2283 pass 2284 2285 def isdisjoint(self, *args, **kwargs): # real signature unknown 2286 """ Return True if two sets have a null intersection. """ 2287 pass 2288 2289 def issubset(self, *args, **kwargs): # real signature unknown 2290 """ Report whether another set contains this set. """ 2291 pass 2292 2293 def issuperset(self, *args, **kwargs): # real signature unknown 2294 """ Report whether this set contains another set. """ 2295 pass 2296 2297 def pop(self, *args, **kwargs): # real signature unknown 2298 """ 2299 Remove and return an arbitrary set element. 2300 Raises KeyError if the set is empty. 2301 """ 2302 pass 2303 2304 def remove(self, *args, **kwargs): # real signature unknown 2305 """ 2306 Remove an element from a set; it must be a member. 2307 2308 If the element is not a member, raise a KeyError. 2309 """ 2310 pass 2311 2312 def symmetric_difference(self, *args, **kwargs): # real signature unknown 2313 """ 2314 Return the symmetric difference of two sets as a new set. 2315 2316 (i.e. all elements that are in exactly one of the sets.) 2317 """ 2318 pass 2319 2320 def symmetric_difference_update(self, *args, **kwargs): # real signature unknown 2321 """ Update a set with the symmetric difference of itself and another. """ 2322 pass 2323 2324 def union(self, *args, **kwargs): # real signature unknown 2325 """ 2326 Return the union of sets as a new set. 2327 2328 (i.e. all elements that are in either set.) 2329 """ 2330 pass 2331 2332 def update(self, *args, **kwargs): # real signature unknown 2333 """ Update a set with the union of itself and others. """ 2334 pass 2335 2336 def __and__(self, y): # real signature unknown; restored from __doc__ 2337 """ x.__and__(y) <==> x&y """ 2338 pass 2339 2340 def __cmp__(self, y): # real signature unknown; restored from __doc__ 2341 """ x.__cmp__(y) <==> cmp(x,y) """ 2342 pass 2343 2344 def __contains__(self, y): # real signature unknown; restored from __doc__ 2345 """ x.__contains__(y) <==> y in x. """ 2346 pass 2347 2348 def __eq__(self, y): # real signature unknown; restored from __doc__ 2349 """ x.__eq__(y) <==> x==y """ 2350 pass 2351 2352 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2353 """ x.__getattribute__('name') <==> x.name """ 2354 pass 2355 2356 def __ge__(self, y): # real signature unknown; restored from __doc__ 2357 """ x.__ge__(y) <==> x>=y """ 2358 pass 2359 2360 def __gt__(self, y): # real signature unknown; restored from __doc__ 2361 """ x.__gt__(y) <==> x>y """ 2362 pass 2363 2364 def __iand__(self, y): # real signature unknown; restored from __doc__ 2365 """ x.__iand__(y) <==> x&=y """ 2366 pass 2367 2368 def __init__(self, seq=()): # known special case of set.__init__ 2369 """ 2370 set() -> new empty set object 2371 set(iterable) -> new set object 2372 2373 Build an unordered collection of unique elements. 2374 # (copied from class doc) 2375 """ 2376 pass 2377 2378 def __ior__(self, y): # real signature unknown; restored from __doc__ 2379 """ x.__ior__(y) <==> x|=y """ 2380 pass 2381 2382 def __isub__(self, y): # real signature unknown; restored from __doc__ 2383 """ x.__isub__(y) <==> x-=y """ 2384 pass 2385 2386 def __iter__(self): # real signature unknown; restored from __doc__ 2387 """ x.__iter__() <==> iter(x) """ 2388 pass 2389 2390 def __ixor__(self, y): # real signature unknown; restored from __doc__ 2391 """ x.__ixor__(y) <==> x^=y """ 2392 pass 2393 2394 def __len__(self): # real signature unknown; restored from __doc__ 2395 """ x.__len__() <==> len(x) """ 2396 pass 2397 2398 def __le__(self, y): # real signature unknown; restored from __doc__ 2399 """ x.__le__(y) <==> x<=y """ 2400 pass 2401 2402 def __lt__(self, y): # real signature unknown; restored from __doc__ 2403 """ x.__lt__(y) <==> x<y """ 2404 pass 2405 2406 @staticmethod # known case of __new__ 2407 def __new__(S, *more): # real signature unknown; restored from __doc__ 2408 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2409 pass 2410 2411 def __ne__(self, y): # real signature unknown; restored from __doc__ 2412 """ x.__ne__(y) <==> x!=y """ 2413 pass 2414 2415 def __or__(self, y): # real signature unknown; restored from __doc__ 2416 """ x.__or__(y) <==> x|y """ 2417 pass 2418 2419 def __rand__(self, y): # real signature unknown; restored from __doc__ 2420 """ x.__rand__(y) <==> y&x """ 2421 pass 2422 2423 def __reduce__(self, *args, **kwargs): # real signature unknown 2424 """ Return state information for pickling. """ 2425 pass 2426 2427 def __repr__(self): # real signature unknown; restored from __doc__ 2428 """ x.__repr__() <==> repr(x) """ 2429 pass 2430 2431 def __ror__(self, y): # real signature unknown; restored from __doc__ 2432 """ x.__ror__(y) <==> y|x """ 2433 pass 2434 2435 def __rsub__(self, y): # real signature unknown; restored from __doc__ 2436 """ x.__rsub__(y) <==> y-x """ 2437 pass 2438 2439 def __rxor__(self, y): # real signature unknown; restored from __doc__ 2440 """ x.__rxor__(y) <==> y^x """ 2441 pass 2442 2443 def __sizeof__(self): # real signature unknown; restored from __doc__ 2444 """ S.__sizeof__() -> size of S in memory, in bytes """ 2445 pass 2446 2447 def __sub__(self, y): # real signature unknown; restored from __doc__ 2448 """ x.__sub__(y) <==> x-y """ 2449 pass 2450 2451 def __xor__(self, y): # real signature unknown; restored from __doc__ 2452 """ x.__xor__(y) <==> x^y """ 2453 pass 2454 2455 __hash__ = None 2456 2457 2458 class slice(object): 2459 """ 2460 slice(stop) 2461 slice(start, stop[, step]) 2462 2463 Create a slice object. This is used for extended slicing (e.g. a[0:10:2]). 2464 """ 2465 def indices(self, len): # real signature unknown; restored from __doc__ 2466 """ 2467 S.indices(len) -> (start, stop, stride) 2468 2469 Assuming a sequence of length len, calculate the start and stop 2470 indices, and the stride length of the extended slice described by 2471 S. Out of bounds indices are clipped in a manner consistent with the 2472 handling of normal slices. 2473 """ 2474 pass 2475 2476 def __cmp__(self, y): # real signature unknown; restored from __doc__ 2477 """ x.__cmp__(y) <==> cmp(x,y) """ 2478 pass 2479 2480 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2481 """ x.__getattribute__('name') <==> x.name """ 2482 pass 2483 2484 def __hash__(self): # real signature unknown; restored from __doc__ 2485 """ x.__hash__() <==> hash(x) """ 2486 pass 2487 2488 def __init__(self, stop): # real signature unknown; restored from __doc__ 2489 pass 2490 2491 @staticmethod # known case of __new__ 2492 def __new__(S, *more): # real signature unknown; restored from __doc__ 2493 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2494 pass 2495 2496 def __reduce__(self, *args, **kwargs): # real signature unknown 2497 """ Return state information for pickling. """ 2498 pass 2499 2500 def __repr__(self): # real signature unknown; restored from __doc__ 2501 """ x.__repr__() <==> repr(x) """ 2502 pass 2503 2504 start = property(lambda self: 0) 2505 """:type: int""" 2506 2507 step = property(lambda self: 0) 2508 """:type: int""" 2509 2510 stop = property(lambda self: 0) 2511 """:type: int""" 2512 2513 2514 2515 class staticmethod(object): 2516 """ 2517 staticmethod(function) -> method 2518 2519 Convert a function to be a static method. 2520 2521 A static method does not receive an implicit first argument. 2522 To declare a static method, use this idiom: 2523 2524 class C: 2525 def f(arg1, arg2, ...): ... 2526 f = staticmethod(f) 2527 2528 It can be called either on the class (e.g. C.f()) or on an instance 2529 (e.g. C().f()). The instance is ignored except for its class. 2530 2531 Static methods in Python are similar to those found in Java or C++. 2532 For a more advanced concept, see the classmethod builtin. 2533 """ 2534 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2535 """ x.__getattribute__('name') <==> x.name """ 2536 pass 2537 2538 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 2539 """ descr.__get__(obj[, type]) -> value """ 2540 pass 2541 2542 def __init__(self, function): # real signature unknown; restored from __doc__ 2543 pass 2544 2545 @staticmethod # known case of __new__ 2546 def __new__(S, *more): # real signature unknown; restored from __doc__ 2547 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2548 pass 2549 2550 __func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2551 2552 2553 2554 class super(object): 2555 """ 2556 super(type, obj) -> bound super object; requires isinstance(obj, type) 2557 super(type) -> unbound super object 2558 super(type, type2) -> bound super object; requires issubclass(type2, type) 2559 Typical use to call a cooperative superclass method: 2560 class C(B): 2561 def meth(self, arg): 2562 super(C, self).meth(arg) 2563 """ 2564 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2565 """ x.__getattribute__('name') <==> x.name """ 2566 pass 2567 2568 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 2569 """ descr.__get__(obj[, type]) -> value """ 2570 pass 2571 2572 def __init__(self, type1, type2=None): # known special case of super.__init__ 2573 """ 2574 super(type, obj) -> bound super object; requires isinstance(obj, type) 2575 super(type) -> unbound super object 2576 super(type, type2) -> bound super object; requires issubclass(type2, type) 2577 Typical use to call a cooperative superclass method: 2578 class C(B): 2579 def meth(self, arg): 2580 super(C, self).meth(arg) 2581 # (copied from class doc) 2582 """ 2583 pass 2584 2585 @staticmethod # known case of __new__ 2586 def __new__(S, *more): # real signature unknown; restored from __doc__ 2587 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2588 pass 2589 2590 def __repr__(self): # real signature unknown; restored from __doc__ 2591 """ x.__repr__() <==> repr(x) """ 2592 pass 2593 2594 __self_class__ = property(lambda self: type(object)) 2595 """the type of the instance invoking super(); may be None 2596 2597 :type: type 2598 """ 2599 2600 __self__ = property(lambda self: type(object)) 2601 """the instance invoking super(); may be None 2602 2603 :type: type 2604 """ 2605 2606 __thisclass__ = property(lambda self: type(object)) 2607 """the class invoking super() 2608 2609 :type: type 2610 """ 2611 2612 2613 2614 class tuple(object): 2615 """ 2616 tuple() -> empty tuple 2617 tuple(iterable) -> tuple initialized from iterable's items 2618 2619 If the argument is a tuple, the return value is the same object. 2620 """ 2621 def count(self, value): # real signature unknown; restored from __doc__ 2622 """ T.count(value) -> integer -- return number of occurrences of value """ 2623 return 0 2624 2625 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 2626 """ 2627 T.index(value, [start, [stop]]) -> integer -- return first index of value. 2628 Raises ValueError if the value is not present. 2629 """ 2630 return 0 2631 2632 def __add__(self, y): # real signature unknown; restored from __doc__ 2633 """ x.__add__(y) <==> x+y """ 2634 pass 2635 2636 def __contains__(self, y): # real signature unknown; restored from __doc__ 2637 """ x.__contains__(y) <==> y in x """ 2638 pass 2639 2640 def __eq__(self, y): # real signature unknown; restored from __doc__ 2641 """ x.__eq__(y) <==> x==y """ 2642 pass 2643 2644 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2645 """ x.__getattribute__('name') <==> x.name """ 2646 pass 2647 2648 def __getitem__(self, y): # real signature unknown; restored from __doc__ 2649 """ x.__getitem__(y) <==> x[y] """ 2650 pass 2651 2652 def __getnewargs__(self, *args, **kwargs): # real signature unknown 2653 pass 2654 2655 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 2656 """ 2657 x.__getslice__(i, j) <==> x[i:j] 2658 2659 Use of negative indices is not supported. 2660 """ 2661 pass 2662 2663 def __ge__(self, y): # real signature unknown; restored from __doc__ 2664 """ x.__ge__(y) <==> x>=y """ 2665 pass 2666 2667 def __gt__(self, y): # real signature unknown; restored from __doc__ 2668 """ x.__gt__(y) <==> x>y """ 2669 pass 2670 2671 def __hash__(self): # real signature unknown; restored from __doc__ 2672 """ x.__hash__() <==> hash(x) """ 2673 pass 2674 2675 def __init__(self, seq=()): # known special case of tuple.__init__ 2676 """ 2677 tuple() -> empty tuple 2678 tuple(iterable) -> tuple initialized from iterable's items 2679 2680 If the argument is a tuple, the return value is the same object. 2681 # (copied from class doc) 2682 """ 2683 pass 2684 2685 def __iter__(self): # real signature unknown; restored from __doc__ 2686 """ x.__iter__() <==> iter(x) """ 2687 pass 2688 2689 def __len__(self): # real signature unknown; restored from __doc__ 2690 """ x.__len__() <==> len(x) """ 2691 pass 2692 2693 def __le__(self, y): # real signature unknown; restored from __doc__ 2694 """ x.__le__(y) <==> x<=y """ 2695 pass 2696 2697 def __lt__(self, y): # real signature unknown; restored from __doc__ 2698 """ x.__lt__(y) <==> x<y """ 2699 pass 2700 2701 def __mul__(self, n): # real signature unknown; restored from __doc__ 2702 """ x.__mul__(n) <==> x*n """ 2703 pass 2704 2705 @staticmethod # known case of __new__ 2706 def __new__(S, *more): # real signature unknown; restored from __doc__ 2707 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2708 pass 2709 2710 def __ne__(self, y): # real signature unknown; restored from __doc__ 2711 """ x.__ne__(y) <==> x!=y """ 2712 pass 2713 2714 def __repr__(self): # real signature unknown; restored from __doc__ 2715 """ x.__repr__() <==> repr(x) """ 2716 pass 2717 2718 def __rmul__(self, n): # real signature unknown; restored from __doc__ 2719 """ x.__rmul__(n) <==> n*x """ 2720 pass 2721 2722 2723 class type(object): 2724 """ 2725 type(object) -> the object's type 2726 type(name, bases, dict) -> a new type 2727 """ 2728 def mro(self): # real signature unknown; restored from __doc__ 2729 """ 2730 mro() -> list 2731 return a type's method resolution order 2732 """ 2733 return [] 2734 2735 def __call__(self, *more): # real signature unknown; restored from __doc__ 2736 """ x.__call__(...) <==> x(...) """ 2737 pass 2738 2739 def __delattr__(self, name): # real signature unknown; restored from __doc__ 2740 """ x.__delattr__('name') <==> del x.name """ 2741 pass 2742 2743 def __eq__(self, y): # real signature unknown; restored from __doc__ 2744 """ x.__eq__(y) <==> x==y """ 2745 pass 2746 2747 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2748 """ x.__getattribute__('name') <==> x.name """ 2749 pass 2750 2751 def __ge__(self, y): # real signature unknown; restored from __doc__ 2752 """ x.__ge__(y) <==> x>=y """ 2753 pass 2754 2755 def __gt__(self, y): # real signature unknown; restored from __doc__ 2756 """ x.__gt__(y) <==> x>y """ 2757 pass 2758 2759 def __hash__(self): # real signature unknown; restored from __doc__ 2760 """ x.__hash__() <==> hash(x) """ 2761 pass 2762 2763 def __init__(cls, what, bases=None, dict=None): # known special case of type.__init__ 2764 """ 2765 type(object) -> the object's type 2766 type(name, bases, dict) -> a new type 2767 # (copied from class doc) 2768 """ 2769 pass 2770 2771 def __instancecheck__(self): # real signature unknown; restored from __doc__ 2772 """ 2773 __instancecheck__() -> bool 2774 check if an object is an instance 2775 """ 2776 return False 2777 2778 def __le__(self, y): # real signature unknown; restored from __doc__ 2779 """ x.__le__(y) <==> x<=y """ 2780 pass 2781 2782 def __lt__(self, y): # real signature unknown; restored from __doc__ 2783 """ x.__lt__(y) <==> x<y """ 2784 pass 2785 2786 @staticmethod # known case of __new__ 2787 def __new__(S, *more): # real signature unknown; restored from __doc__ 2788 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2789 pass 2790 2791 def __ne__(self, y): # real signature unknown; restored from __doc__ 2792 """ x.__ne__(y) <==> x!=y """ 2793 pass 2794 2795 def __repr__(self): # real signature unknown; restored from __doc__ 2796 """ x.__repr__() <==> repr(x) """ 2797 pass 2798 2799 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 2800 """ x.__setattr__('name', value) <==> x.name = value """ 2801 pass 2802 2803 def __subclasscheck__(self): # real signature unknown; restored from __doc__ 2804 """ 2805 __subclasscheck__() -> bool 2806 check if a class is a subclass 2807 """ 2808 return False 2809 2810 def __subclasses__(self): # real signature unknown; restored from __doc__ 2811 """ __subclasses__() -> list of immediate subclasses """ 2812 return [] 2813 2814 __abstractmethods__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2815 2816 2817 __bases__ = ( 2818 object, 2819 ) 2820 __base__ = object 2821 __basicsize__ = 436 2822 __dictoffset__ = 132 2823 __dict__ = None # (!) real value is '' 2824 __flags__ = -2146544149 2825 __itemsize__ = 20 2826 __mro__ = ( 2827 None, # (!) forward: type, real value is '' 2828 object, 2829 ) 2830 __name__ = 'type' 2831 __weakrefoffset__ = 184 2832 2833 2834 class unicode(basestring): 2835 """ 2836 unicode(object='') -> unicode object 2837 unicode(string[, encoding[, errors]]) -> unicode object 2838 2839 Create a new Unicode object from the given encoded string. 2840 encoding defaults to the current default string encoding. 2841 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 2842 """ 2843 def capitalize(self): # real signature unknown; restored from __doc__ 2844 """ 2845 S.capitalize() -> unicode 2846 2847 Return a capitalized version of S, i.e. make the first character 2848 have upper case and the rest lower case. 2849 """ 2850 return u"" 2851 2852 def center(self, width, fillchar=None): # real signature unknown; restored from __doc__ 2853 """ 2854 S.center(width[, fillchar]) -> unicode 2855 2856 Return S centered in a Unicode string of length width. Padding is 2857 done using the specified fill character (default is a space) 2858 """ 2859 return u"" 2860 2861 def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2862 """ 2863 S.count(sub[, start[, end]]) -> int 2864 2865 Return the number of non-overlapping occurrences of substring sub in 2866 Unicode string S[start:end]. Optional arguments start and end are 2867 interpreted as in slice notation. 2868 """ 2869 return 0 2870 2871 def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 2872 """ 2873 S.decode([encoding[,errors]]) -> string or unicode 2874 2875 Decodes S using the codec registered for encoding. encoding defaults 2876 to the default encoding. errors may be given to set a different error 2877 handling scheme. Default is 'strict' meaning that encoding errors raise 2878 a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' 2879 as well as any other name registered with codecs.register_error that is 2880 able to handle UnicodeDecodeErrors. 2881 """ 2882 return "" 2883 2884 def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 2885 """ 2886 S.encode([encoding[,errors]]) -> string or unicode 2887 2888 Encodes S using the codec registered for encoding. encoding defaults 2889 to the default encoding. errors may be given to set a different error 2890 handling scheme. Default is 'strict' meaning that encoding errors raise 2891 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 2892 'xmlcharrefreplace' as well as any other name registered with 2893 codecs.register_error that can handle UnicodeEncodeErrors. 2894 """ 2895 return "" 2896 2897 def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__ 2898 """ 2899 S.endswith(suffix[, start[, end]]) -> bool 2900 2901 Return True if S ends with the specified suffix, False otherwise. 2902 With optional start, test S beginning at that position. 2903 With optional end, stop comparing S at that position. 2904 suffix can also be a tuple of strings to try. 2905 """ 2906 return False 2907 2908 def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__ 2909 """ 2910 S.expandtabs([tabsize]) -> unicode 2911 2912 Return a copy of S where all tab characters are expanded using spaces. 2913 If tabsize is not given, a tab size of 8 characters is assumed. 2914 """ 2915 return u"" 2916 2917 def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2918 """ 2919 S.find(sub [,start [,end]]) -> int 2920 2921 Return the lowest index in S where substring sub is found, 2922 such that sub is contained within S[start:end]. Optional 2923 arguments start and end are interpreted as in slice notation. 2924 2925 Return -1 on failure. 2926 """ 2927 return 0 2928 2929 def format(*args, **kwargs): # known special case of unicode.format 2930 """ 2931 S.format(*args, **kwargs) -> unicode 2932 2933 Return a formatted version of S, using substitutions from args and kwargs. 2934 The substitutions are identified by braces ('{' and '}'). 2935 """ 2936 pass 2937 2938 def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2939 """ 2940 S.index(sub [,start [,end]]) -> int 2941 2942 Like S.find() but raise ValueError when the substring is not found. 2943 """ 2944 return 0 2945 2946 def isalnum(self): # real signature unknown; restored from __doc__ 2947 """ 2948 S.isalnum() -> bool 2949 2950 Return True if all characters in S are alphanumeric 2951 and there is at least one character in S, False otherwise. 2952 """ 2953 return False 2954 2955 def isalpha(self): # real signature unknown; restored from __doc__ 2956 """ 2957 S.isalpha() -> bool 2958 2959 Return True if all characters in S are alphabetic 2960 and there is at least one character in S, False otherwise. 2961 """ 2962 return False 2963 2964 def isdecimal(self): # real signature unknown; restored from __doc__ 2965 """ 2966 S.isdecimal() -> bool 2967 2968 Return True if there are only decimal characters in S, 2969 False otherwise. 2970 """ 2971 return False 2972 2973 def isdigit(self): # real signature unknown; restored from __doc__ 2974 """ 2975 S.isdigit() -> bool 2976 2977 Return True if all characters in S are digits 2978 and there is at least one character in S, False otherwise. 2979 """ 2980 return False 2981 2982 def islower(self): # real signature unknown; restored from __doc__ 2983 """ 2984 S.islower() -> bool 2985 2986 Return True if all cased characters in S are lowercase and there is 2987 at least one cased character in S, False otherwise. 2988 """ 2989 return False 2990 2991 def isnumeric(self): # real signature unknown; restored from __doc__ 2992 """ 2993 S.isnumeric() -> bool 2994 2995 Return True if there are only numeric characters in S, 2996 False otherwise. 2997 """ 2998 return False 2999 3000 def isspace(self): # real signature unknown; restored from __doc__ 3001 """ 3002 S.isspace() -> bool 3003 3004 Return True if all characters in S are whitespace 3005 and there is at least one character in S, False otherwise. 3006 """ 3007 return False 3008 3009 def istitle(self): # real signature unknown; restored from __doc__ 3010 """ 3011 S.istitle() -> bool 3012 3013 Return True if S is a titlecased string and there is at least one 3014 character in S, i.e. upper- and titlecase characters may only 3015 follow uncased characters and lowercase characters only cased ones. 3016 Return False otherwise. 3017 """ 3018 return False 3019 3020 def isupper(self): # real signature unknown; restored from __doc__ 3021 """ 3022 S.isupper() -> bool 3023 3024 Return True if all cased characters in S are uppercase and there is 3025 at least one cased character in S, False otherwise. 3026 """ 3027 return False 3028 3029 def join(self, iterable): # real signature unknown; restored from __doc__ 3030 """ 3031 S.join(iterable) -> unicode 3032 3033 Return a string which is the concatenation of the strings in the 3034 iterable. The separator between elements is S. 3035 """ 3036 return u"" 3037 3038 def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 3039 """ 3040 S.ljust(width[, fillchar]) -> int 3041 3042 Return S left-justified in a Unicode string of length width. Padding is 3043 done using the specified fill character (default is a space). 3044 """ 3045 return 0 3046 3047 def lower(self): # real signature unknown; restored from __doc__ 3048 """ 3049 S.lower() -> unicode 3050 3051 Return a copy of the string S converted to lowercase. 3052 """ 3053 return u"" 3054 3055 def lstrip(self, chars=None): # real signature unknown; restored from __doc__ 3056 """ 3057 S.lstrip([chars]) -> unicode 3058 3059 Return a copy of the string S with leading whitespace removed. 3060 If chars is given and not None, remove characters in chars instead. 3061 If chars is a str, it will be converted to unicode before stripping 3062 """ 3063 return u"" 3064 3065 def partition(self, sep): # real signature unknown; restored from __doc__ 3066 """ 3067 S.partition(sep) -> (head, sep, tail) 3068 3069 Search for the separator sep in S, and return the part before it, 3070 the separator itself, and the part after it. If the separator is not 3071 found, return S and two empty strings. 3072 """ 3073 pass 3074 3075 def replace(self, old, new, count=None): # real signature unknown; restored from __doc__ 3076 """ 3077 S.replace(old, new[, count]) -> unicode 3078 3079 Return a copy of S with all occurrences of substring 3080 old replaced by new. If the optional argument count is 3081 given, only the first count occurrences are replaced. 3082 """ 3083 return u"" 3084 3085 def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 3086 """ 3087 S.rfind(sub [,start [,end]]) -> int 3088 3089 Return the highest index in S where substring sub is found, 3090 such that sub is contained within S[start:end]. Optional 3091 arguments start and end are interpreted as in slice notation. 3092 3093 Return -1 on failure. 3094 """ 3095 return 0 3096 3097 def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 3098 """ 3099 S.rindex(sub [,start [,end]]) -> int 3100 3101 Like S.rfind() but raise ValueError when the substring is not found. 3102 """ 3103 return 0 3104 3105 def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 3106 """ 3107 S.rjust(width[, fillchar]) -> unicode 3108 3109 Return S right-justified in a Unicode string of length width. Padding is 3110 done using the specified fill character (default is a space). 3111 """ 3112 return u"" 3113 3114 def rpartition(self, sep): # real signature unknown; restored from __doc__ 3115 """ 3116 S.rpartition(sep) -> (head, sep, tail) 3117 3118 Search for the separator sep in S, starting at the end of S, and return 3119 the part before it, the separator itself, and the part after it. If the 3120 separator is not found, return two empty strings and S. 3121 """ 3122 pass 3123 3124 def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 3125 """ 3126 S.rsplit([sep [,maxsplit]]) -> list of strings 3127 3128 Return a list of the words in S, using sep as the 3129 delimiter string, starting at the end of the string and 3130 working to the front. If maxsplit is given, at most maxsplit 3131 splits are done. If sep is not specified, any whitespace string 3132 is a separator. 3133 """ 3134 return [] 3135 3136 def rstrip(self, chars=None): # real signature unknown; restored from __doc__ 3137 """ 3138 S.rstrip([chars]) -> unicode 3139 3140 Return a copy of the string S with trailing whitespace removed. 3141 If chars is given and not None, remove characters in chars instead. 3142 If chars is a str, it will be converted to unicode before stripping 3143 """ 3144 return u"" 3145 3146 def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 3147 """ 3148 S.split([sep [,maxsplit]]) -> list of strings 3149 3150 Return a list of the words in S, using sep as the 3151 delimiter string. If maxsplit is given, at most maxsplit 3152 splits are done. If sep is not specified or is None, any 3153 whitespace string is a separator and empty strings are 3154 removed from the result. 3155 """ 3156 return [] 3157 3158 def splitlines(self, keepends=False): # real signature unknown; restored from __doc__ 3159 """ 3160 S.splitlines(keepends=False) -> list of strings 3161 3162 Return a list of the lines in S, breaking at line boundaries. 3163 Line breaks are not included in the resulting list unless keepends 3164 is given and true. 3165 """ 3166 return [] 3167 3168 def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__ 3169 """ 3170 S.startswith(prefix[, start[, end]]) -> bool 3171 3172 Return True if S starts with the specified prefix, False otherwise. 3173 With optional start, test S beginning at that position. 3174 With optional end, stop comparing S at that position. 3175 prefix can also be a tuple of strings to try. 3176 """ 3177 return False 3178 3179 def strip(self, chars=None): # real signature unknown; restored from __doc__ 3180 """ 3181 S.strip([chars]) -> unicode 3182 3183 Return a copy of the string S with leading and trailing 3184 whitespace removed. 3185 If chars is given and not None, remove characters in chars instead. 3186 If chars is a str, it will be converted to unicode before stripping 3187 """ 3188 return u"" 3189 3190 def swapcase(self): # real signature unknown; restored from __doc__ 3191 """ 3192 S.swapcase() -> unicode 3193 3194 Return a copy of S with uppercase characters converted to lowercase 3195 and vice versa. 3196 """ 3197 return u"" 3198 3199 def title(self): # real signature unknown; restored from __doc__ 3200 """ 3201 S.title() -> unicode 3202 3203 Return a titlecased version of S, i.e. words start with title case 3204 characters, all remaining cased characters have lower case. 3205 """ 3206 return u"" 3207 3208 def translate(self, table): # real signature unknown; restored from __doc__ 3209 """ 3210 S.translate(table) -> unicode 3211 3212 Return a copy of the string S, where all characters have been mapped 3213 through the given translation table, which must be a mapping of 3214 Unicode ordinals to Unicode ordinals, Unicode strings or None. 3215 Unmapped characters are left untouched. Characters mapped to None 3216 are deleted. 3217 """ 3218 return u"" 3219 3220 def upper(self): # real signature unknown; restored from __doc__ 3221 """ 3222 S.upper() -> unicode 3223 3224 Return a copy of S converted to uppercase. 3225 """ 3226 return u"" 3227 3228 def zfill(self, width): # real signature unknown; restored from __doc__ 3229 """ 3230 S.zfill(width) -> unicode 3231 3232 Pad a numeric string S with zeros on the left, to fill a field 3233 of the specified width. The string S is never truncated. 3234 """ 3235 return u"" 3236 3237 def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown 3238 pass 3239 3240 def _formatter_parser(self, *args, **kwargs): # real signature unknown 3241 pass 3242 3243 def __add__(self, y): # real signature unknown; restored from __doc__ 3244 """ x.__add__(y) <==> x+y """ 3245 pass 3246 3247 def __contains__(self, y): # real signature unknown; restored from __doc__ 3248 """ x.__contains__(y) <==> y in x """ 3249 pass 3250 3251 def __eq__(self, y): # real signature unknown; restored from __doc__ 3252 """ x.__eq__(y) <==> x==y """ 3253 pass 3254 3255 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 3256 """ 3257 S.__format__(format_spec) -> unicode 3258 3259 Return a formatted version of S as described by format_spec. 3260 """ 3261 return u"" 3262 3263 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 3264 """ x.__getattribute__('name') <==> x.name """ 3265 pass 3266 3267 def __getitem__(self, y): # real signature unknown; restored from __doc__ 3268 """ x.__getitem__(y) <==> x[y] """ 3269 pass 3270 3271 def __getnewargs__(self, *args, **kwargs): # real signature unknown 3272 pass 3273 3274 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 3275 """ 3276 x.__getslice__(i, j) <==> x[i:j] 3277 3278 Use of negative indices is not supported. 3279 """ 3280 pass 3281 3282 def __ge__(self, y): # real signature unknown; restored from __doc__ 3283 """ x.__ge__(y) <==> x>=y """ 3284 pass 3285 3286 def __gt__(self, y): # real signature unknown; restored from __doc__ 3287 """ x.__gt__(y) <==> x>y """ 3288 pass 3289 3290 def __hash__(self): # real signature unknown; restored from __doc__ 3291 """ x.__hash__() <==> hash(x) """ 3292 pass 3293 3294 def __init__(self, string=u'', encoding=None, errors='strict'): # known special case of unicode.__init__ 3295 """ 3296 unicode(object='') -> unicode object 3297 unicode(string[, encoding[, errors]]) -> unicode object 3298 3299 Create a new Unicode object from the given encoded string. 3300 encoding defaults to the current default string encoding. 3301 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 3302 # (copied from class doc) 3303 """ 3304 pass 3305 3306 def __len__(self): # real signature unknown; restored from __doc__ 3307 """ x.__len__() <==> len(x) """ 3308 pass 3309 3310 def __le__(self, y): # real signature unknown; restored from __doc__ 3311 """ x.__le__(y) <==> x<=y """ 3312 pass 3313 3314 def __lt__(self, y): # real signature unknown; restored from __doc__ 3315 """ x.__lt__(y) <==> x<y """ 3316 pass 3317 3318 def __mod__(self, y): # real signature unknown; restored from __doc__ 3319 """ x.__mod__(y) <==> x%y """ 3320 pass 3321 3322 def __mul__(self, n): # real signature unknown; restored from __doc__ 3323 """ x.__mul__(n) <==> x*n """ 3324 pass 3325 3326 @staticmethod # known case of __new__ 3327 def __new__(S, *more): # real signature unknown; restored from __doc__ 3328 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 3329 pass 3330 3331 def __ne__(self, y): # real signature unknown; restored from __doc__ 3332 """ x.__ne__(y) <==> x!=y """ 3333 pass 3334 3335 def __repr__(self): # real signature unknown; restored from __doc__ 3336 """ x.__repr__() <==> repr(x) """ 3337 pass 3338 3339 def __rmod__(self, y): # real signature unknown; restored from __doc__ 3340 """ x.__rmod__(y) <==> y%x """ 3341 pass 3342 3343 def __rmul__(self, n): # real signature unknown; restored from __doc__ 3344 """ x.__rmul__(n) <==> n*x """ 3345 pass 3346 3347 def __sizeof__(self): # real signature unknown; restored from __doc__ 3348 """ S.__sizeof__() -> size of S in memory, in bytes """ 3349 pass 3350 3351 def __str__(self): # real signature unknown; restored from __doc__ 3352 """ x.__str__() <==> str(x) """ 3353 pass 3354 3355 3356 class xrange(object): 3357 """ 3358 xrange(stop) -> xrange object 3359 xrange(start, stop[, step]) -> xrange object 3360 3361 Like range(), but instead of returning a list, returns an object that 3362 generates the numbers in the range on demand. For looping, this is 3363 slightly faster than range() and more memory efficient. 3364 """ 3365 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 3366 """ x.__getattribute__('name') <==> x.name """ 3367 pass 3368 3369 def __getitem__(self, y): # real signature unknown; restored from __doc__ 3370 """ x.__getitem__(y) <==> x[y] """ 3371 pass 3372 3373 def __init__(self, stop): # real signature unknown; restored from __doc__ 3374 pass 3375 3376 def __iter__(self): # real signature unknown; restored from __doc__ 3377 """ x.__iter__() <==> iter(x) """ 3378 pass 3379 3380 def __len__(self): # real signature unknown; restored from __doc__ 3381 """ x.__len__() <==> len(x) """ 3382 pass 3383 3384 @staticmethod # known case of __new__ 3385 def __new__(S, *more): # real signature unknown; restored from __doc__ 3386 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 3387 pass 3388 3389 def __reduce__(self, *args, **kwargs): # real signature unknown 3390 pass 3391 3392 def __repr__(self): # real signature unknown; restored from __doc__ 3393 """ x.__repr__() <==> repr(x) """ 3394 pass 3395 3396 def __reversed__(self, *args, **kwargs): # real signature unknown 3397 """ Returns a reverse iterator. """ 3398 pass 3399 3400 3401 # variables with complex values 3402 3403 Ellipsis = None # (!) real value is '' 3404 3405 NotImplemented = None # (!) real value is ''
常用方法以具体实例给出
1 a='dianke' 2 >>> a.capitalize()(首字母大写) 3 'Dianke' 4 >>> a.center(10,'*') 5 内容居中,width:总长度;fillchar:空白处填充内容,默认无 """ 6 7 '**dianke**' 8 >>> a.count('d') """ 子序列个数 """ 9 1 10 >>> a.endswith('e') 11 True 12 >>> a.find('d') 寻找子序列位置,如果没找到,返回 -1 """ 13 0 14 >>> a.find('p') 15 -1 16 >>> a.index('d') """ 子序列位置,如果没找到,报错 """ 17 0 18 >>> a.index('p') 19 Traceback (most recent call last): 20 File "<stdin>", line 1, in <module> 21 ValueError: substring not found 22 >>> '-'.join(a) join是连接 23 'd-i-a-n-k-e' 24 >>> b=['ddd','wer'] #将列表变成了字符串 25 >>> '_'.join(b) 26 'ddd_wer' 27 >>> a.ljust(10,'#') """ 内容左对齐,右侧填充 """ 28 'dianke####' 29 >>> a.rjust(10,'#') """ 内容右对齐,左侧填充 """ 30 '####dianke' 31 >>> c='AAAwer' 32 >>> c.lower() 变成小写 33 'aaawer' 34 >>> a.upper() 变成大写 35 'DIANKE' 36 >>> b=' ppppp' 37 >>> b 38 ' ppppp' 39 >>> b.lstrip() 去除左侧空白 40 'ppppp' 41 >>> d='dddddddd ' 42 >>> d.rstrip() 去除右侧空白 43 'dddddddd' 44 >>> e=' rrrrr ' 45 >>> e.strip() 去除两边空白 46 'rrrrr' 47 >>> a.replace(a,'Dianke') 替换 48 'Dianke' 49 >>> a 50 'dianke' 51 >>> 52 >>> a.split('n') 以什么分割可以将字符变成列表 53 ['dia', 'ke'] 54 >>> 55 >>> b='XUeXi' 56 >>> b.swapcase() 大写变小写,小写变大写 57 'xuExI' 58 format 格式化输出,在函数式编程的时候详细说 59 编码与解码 60 encode decode
编码与解码

具体简单实例
1 编码 与 解码 2 encode decode 3 unicode是未经任何编码的 4 >>> '我' (win下默认是gbk) 5 '\xce\xd2' 6 >>> str1='\xce\xd2' 7 >>> print str1 8 我 9 >>> str1.decode('gbk') 解码成unicode括号里面填写原编码的编码 10 u'\u6211' 11 >>> str1.decode('gbk').encode('utf8') 编码成utf8 12 '\xe6\x88\x91' 13 >>> print '\xe6\x88\x91' 输出 14 鎴
4、列表
例如 li = [11,22,33]
列表的方法如下:(重要)
1 class list(object): 2 """ 3 list() -> new empty list 4 list(iterable) -> new list initialized from iterable's items 5 """ 6 def append(self, p_object): # real signature unknown; restored from __doc__ 7 """ L.append(object) -- append object to end """ 8 pass 9 10 def count(self, value): # real signature unknown; restored from __doc__ 11 """ L.count(value) -> integer -- return number of occurrences of value """ 12 return 0 13 14 def extend(self, iterable): # real signature unknown; restored from __doc__ 15 """ L.extend(iterable) -- extend list by appending elements from the iterable """ 16 pass 17 18 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 19 """ 20 L.index(value, [start, [stop]]) -> integer -- return first index of value. 21 Raises ValueError if the value is not present. 22 """ 23 return 0 24 25 def insert(self, index, p_object): # real signature unknown; restored from __doc__ 26 """ L.insert(index, object) -- insert object before index """ 27 pass 28 29 def pop(self, index=None): # real signature unknown; restored from __doc__ 30 """ 31 L.pop([index]) -> item -- remove and return item at index (default last). 32 Raises IndexError if list is empty or index is out of range. 33 """ 34 pass 35 36 def remove(self, value): # real signature unknown; restored from __doc__ 37 """ 38 L.remove(value) -- remove first occurrence of value. 39 Raises ValueError if the value is not present. 40 """ 41 pass 42 43 def reverse(self): # real signature unknown; restored from __doc__ 44 """ L.reverse() -- reverse *IN PLACE* """ 45 pass 46 47 def sort(self, cmp=None, key=None, reverse=False): # real signature unknown; restored from __doc__ 48 """ 49 L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; 50 cmp(x, y) -> -1, 0, 1 51 """ 52 pass 53 54 def __add__(self, y): # real signature unknown; restored from __doc__ 55 """ x.__add__(y) <==> x+y """ 56 pass 57 58 def __contains__(self, y): # real signature unknown; restored from __doc__ 59 """ x.__contains__(y) <==> y in x """ 60 pass 61 62 def __delitem__(self, y): # real signature unknown; restored from __doc__ 63 """ x.__delitem__(y) <==> del x[y] """ 64 pass 65 66 def __delslice__(self, i, j): # real signature unknown; restored from __doc__ 67 """ 68 x.__delslice__(i, j) <==> del x[i:j] 69 70 Use of negative indices is not supported. 71 """ 72 pass 73 74 def __eq__(self, y): # real signature unknown; restored from __doc__ 75 """ x.__eq__(y) <==> x==y """ 76 pass 77 78 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 79 """ x.__getattribute__('name') <==> x.name """ 80 pass 81 82 def __getitem__(self, y): # real signature unknown; restored from __doc__ 83 """ x.__getitem__(y) <==> x[y] """ 84 pass 85 86 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 87 """ 88 x.__getslice__(i, j) <==> x[i:j] 89 90 Use of negative indices is not supported. 91 """ 92 pass 93 94 def __ge__(self, y): # real signature unknown; restored from __doc__ 95 """ x.__ge__(y) <==> x>=y """ 96 pass 97 98 def __gt__(self, y): # real signature unknown; restored from __doc__ 99 """ x.__gt__(y) <==> x>y """ 100 pass 101 102 def __iadd__(self, y): # real signature unknown; restored from __doc__ 103 """ x.__iadd__(y) <==> x+=y """ 104 pass 105 106 def __imul__(self, y): # real signature unknown; restored from __doc__ 107 """ x.__imul__(y) <==> x*=y """ 108 pass 109 110 def __init__(self, seq=()): # known special case of list.__init__ 111 """ 112 list() -> new empty list 113 list(iterable) -> new list initialized from iterable's items 114 # (copied from class doc) 115 """ 116 pass 117 118 def __iter__(self): # real signature unknown; restored from __doc__ 119 """ x.__iter__() <==> iter(x) """ 120 pass 121 122 def __len__(self): # real signature unknown; restored from __doc__ 123 """ x.__len__() <==> len(x) """ 124 pass 125 126 def __le__(self, y): # real signature unknown; restored from __doc__ 127 """ x.__le__(y) <==> x<=y """ 128 pass 129 130 def __lt__(self, y): # real signature unknown; restored from __doc__ 131 """ x.__lt__(y) <==> x<y """ 132 pass 133 134 def __mul__(self, n): # real signature unknown; restored from __doc__ 135 """ x.__mul__(n) <==> x*n """ 136 pass 137 138 @staticmethod # known case of __new__ 139 def __new__(S, *more): # real signature unknown; restored from __doc__ 140 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 141 pass 142 143 def __ne__(self, y): # real signature unknown; restored from __doc__ 144 """ x.__ne__(y) <==> x!=y """ 145 pass 146 147 def __repr__(self): # real signature unknown; restored from __doc__ 148 """ x.__repr__() <==> repr(x) """ 149 pass 150 151 def __reversed__(self): # real signature unknown; restored from __doc__ 152 """ L.__reversed__() -- return a reverse iterator over the list """ 153 pass 154 155 def __rmul__(self, n): # real signature unknown; restored from __doc__ 156 """ x.__rmul__(n) <==> n*x """ 157 pass 158 159 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 160 """ x.__setitem__(i, y) <==> x[i]=y """ 161 pass 162 163 def __setslice__(self, i, j, y): # real signature unknown; restored from __doc__ 164 """ 165 x.__setslice__(i, j, y) <==> x[i:j]=y 166 167 Use of negative indices is not supported. 168 """ 169 pass 170 171 def __sizeof__(self): # real signature unknown; restored from __doc__ 172 """ L.__sizeof__() -- size of L in memory, in bytes """ 173 pass 174 175 __hash__ = None 176 177 178 class long(object): 179 """ 180 long(x=0) -> long 181 long(x, base=10) -> long 182 183 Convert a number or string to a long integer, or return 0L if no arguments 184 are given. If x is floating point, the conversion truncates towards zero. 185 186 If x is not a number or if base is given, then x must be a string or 187 Unicode object representing an integer literal in the given base. The 188 literal can be preceded by '+' or '-' and be surrounded by whitespace. 189 The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to 190 interpret the base from the string as an integer literal. 191 >>> int('0b100', base=0) 192 4L 193 """ 194 def bit_length(self): # real signature unknown; restored from __doc__ 195 """ 196 long.bit_length() -> int or long 197 198 Number of bits necessary to represent self in binary. 199 >>> bin(37L) 200 '0b100101' 201 >>> (37L).bit_length() 202 6 203 """ 204 return 0 205 206 def conjugate(self, *args, **kwargs): # real signature unknown 207 """ Returns self, the complex conjugate of any long. """ 208 pass 209 210 def __abs__(self): # real signature unknown; restored from __doc__ 211 """ x.__abs__() <==> abs(x) """ 212 pass 213 214 def __add__(self, y): # real signature unknown; restored from __doc__ 215 """ x.__add__(y) <==> x+y """ 216 pass 217 218 def __and__(self, y): # real signature unknown; restored from __doc__ 219 """ x.__and__(y) <==> x&y """ 220 pass 221 222 def __cmp__(self, y): # real signature unknown; restored from __doc__ 223 """ x.__cmp__(y) <==> cmp(x,y) """ 224 pass 225 226 def __coerce__(self, y): # real signature unknown; restored from __doc__ 227 """ x.__coerce__(y) <==> coerce(x, y) """ 228 pass 229 230 def __divmod__(self, y): # real signature unknown; restored from __doc__ 231 """ x.__divmod__(y) <==> divmod(x, y) """ 232 pass 233 234 def __div__(self, y): # real signature unknown; restored from __doc__ 235 """ x.__div__(y) <==> x/y """ 236 pass 237 238 def __float__(self): # real signature unknown; restored from __doc__ 239 """ x.__float__() <==> float(x) """ 240 pass 241 242 def __floordiv__(self, y): # real signature unknown; restored from __doc__ 243 """ x.__floordiv__(y) <==> x//y """ 244 pass 245 246 def __format__(self, *args, **kwargs): # real signature unknown 247 pass 248 249 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 250 """ x.__getattribute__('name') <==> x.name """ 251 pass 252 253 def __getnewargs__(self, *args, **kwargs): # real signature unknown 254 pass 255 256 def __hash__(self): # real signature unknown; restored from __doc__ 257 """ x.__hash__() <==> hash(x) """ 258 pass 259 260 def __hex__(self): # real signature unknown; restored from __doc__ 261 """ x.__hex__() <==> hex(x) """ 262 pass 263 264 def __index__(self): # real signature unknown; restored from __doc__ 265 """ x[y:z] <==> x[y.__index__():z.__index__()] """ 266 pass 267 268 def __init__(self, x=0): # real signature unknown; restored from __doc__ 269 pass 270 271 def __int__(self): # real signature unknown; restored from __doc__ 272 """ x.__int__() <==> int(x) """ 273 pass 274 275 def __invert__(self): # real signature unknown; restored from __doc__ 276 """ x.__invert__() <==> ~x """ 277 pass 278 279 def __long__(self): # real signature unknown; restored from __doc__ 280 """ x.__long__() <==> long(x) """ 281 pass 282 283 def __lshift__(self, y): # real signature unknown; restored from __doc__ 284 """ x.__lshift__(y) <==> x<<y """ 285 pass 286 287 def __mod__(self, y): # real signature unknown; restored from __doc__ 288 """ x.__mod__(y) <==> x%y """ 289 pass 290 291 def __mul__(self, y): # real signature unknown; restored from __doc__ 292 """ x.__mul__(y) <==> x*y """ 293 pass 294 295 def __neg__(self): # real signature unknown; restored from __doc__ 296 """ x.__neg__() <==> -x """ 297 pass 298 299 @staticmethod # known case of __new__ 300 def __new__(S, *more): # real signature unknown; restored from __doc__ 301 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 302 pass 303 304 def __nonzero__(self): # real signature unknown; restored from __doc__ 305 """ x.__nonzero__() <==> x != 0 """ 306 pass 307 308 def __oct__(self): # real signature unknown; restored from __doc__ 309 """ x.__oct__() <==> oct(x) """ 310 pass 311 312 def __or__(self, y): # real signature unknown; restored from __doc__ 313 """ x.__or__(y) <==> x|y """ 314 pass 315 316 def __pos__(self): # real signature unknown; restored from __doc__ 317 """ x.__pos__() <==> +x """ 318 pass 319 320 def __pow__(self, y, z=None): # real signature unknown; restored from __doc__ 321 """ x.__pow__(y[, z]) <==> pow(x, y[, z]) """ 322 pass 323 324 def __radd__(self, y): # real signature unknown; restored from __doc__ 325 """ x.__radd__(y) <==> y+x """ 326 pass 327 328 def __rand__(self, y): # real signature unknown; restored from __doc__ 329 """ x.__rand__(y) <==> y&x """ 330 pass 331 332 def __rdivmod__(self, y): # real signature unknown; restored from __doc__ 333 """ x.__rdivmod__(y) <==> divmod(y, x) """ 334 pass 335 336 def __rdiv__(self, y): # real signature unknown; restored from __doc__ 337 """ x.__rdiv__(y) <==> y/x """ 338 pass 339 340 def __repr__(self): # real signature unknown; restored from __doc__ 341 """ x.__repr__() <==> repr(x) """ 342 pass 343 344 def __rfloordiv__(self, y): # real signature unknown; restored from __doc__ 345 """ x.__rfloordiv__(y) <==> y//x """ 346 pass 347 348 def __rlshift__(self, y): # real signature unknown; restored from __doc__ 349 """ x.__rlshift__(y) <==> y<<x """ 350 pass 351 352 def __rmod__(self, y): # real signature unknown; restored from __doc__ 353 """ x.__rmod__(y) <==> y%x """ 354 pass 355 356 def __rmul__(self, y): # real signature unknown; restored from __doc__ 357 """ x.__rmul__(y) <==> y*x """ 358 pass 359 360 def __ror__(self, y): # real signature unknown; restored from __doc__ 361 """ x.__ror__(y) <==> y|x """ 362 pass 363 364 def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__ 365 """ y.__rpow__(x[, z]) <==> pow(x, y[, z]) """ 366 pass 367 368 def __rrshift__(self, y): # real signature unknown; restored from __doc__ 369 """ x.__rrshift__(y) <==> y>>x """ 370 pass 371 372 def __rshift__(self, y): # real signature unknown; restored from __doc__ 373 """ x.__rshift__(y) <==> x>>y """ 374 pass 375 376 def __rsub__(self, y): # real signature unknown; restored from __doc__ 377 """ x.__rsub__(y) <==> y-x """ 378 pass 379 380 def __rtruediv__(self, y): # real signature unknown; restored from __doc__ 381 """ x.__rtruediv__(y) <==> y/x """ 382 pass 383 384 def __rxor__(self, y): # real signature unknown; restored from __doc__ 385 """ x.__rxor__(y) <==> y^x """ 386 pass 387 388 def __sizeof__(self, *args, **kwargs): # real signature unknown 389 """ Returns size in memory, in bytes """ 390 pass 391 392 def __str__(self): # real signature unknown; restored from __doc__ 393 """ x.__str__() <==> str(x) """ 394 pass 395 396 def __sub__(self, y): # real signature unknown; restored from __doc__ 397 """ x.__sub__(y) <==> x-y """ 398 pass 399 400 def __truediv__(self, y): # real signature unknown; restored from __doc__ 401 """ x.__truediv__(y) <==> x/y """ 402 pass 403 404 def __trunc__(self, *args, **kwargs): # real signature unknown 405 """ Truncating an Integral returns itself. """ 406 pass 407 408 def __xor__(self, y): # real signature unknown; restored from __doc__ 409 """ x.__xor__(y) <==> x^y """ 410 pass 411 412 denominator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 413 """the denominator of a rational number in lowest terms""" 414 415 imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 416 """the imaginary part of a complex number""" 417 418 numerator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 419 """the numerator of a rational number in lowest terms""" 420 421 real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 422 """the real part of a complex number""" 423 424 425 426 class memoryview(object): 427 """ 428 memoryview(object) 429 430 Create a new memoryview object which references the given object. 431 """ 432 def tobytes(self, *args, **kwargs): # real signature unknown 433 pass 434 435 def tolist(self, *args, **kwargs): # real signature unknown 436 pass 437 438 def __delitem__(self, y): # real signature unknown; restored from __doc__ 439 """ x.__delitem__(y) <==> del x[y] """ 440 pass 441 442 def __eq__(self, y): # real signature unknown; restored from __doc__ 443 """ x.__eq__(y) <==> x==y """ 444 pass 445 446 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 447 """ x.__getattribute__('name') <==> x.name """ 448 pass 449 450 def __getitem__(self, y): # real signature unknown; restored from __doc__ 451 """ x.__getitem__(y) <==> x[y] """ 452 pass 453 454 def __ge__(self, y): # real signature unknown; restored from __doc__ 455 """ x.__ge__(y) <==> x>=y """ 456 pass 457 458 def __gt__(self, y): # real signature unknown; restored from __doc__ 459 """ x.__gt__(y) <==> x>y """ 460 pass 461 462 def __init__(self, p_object): # real signature unknown; restored from __doc__ 463 pass 464 465 def __len__(self): # real signature unknown; restored from __doc__ 466 """ x.__len__() <==> len(x) """ 467 pass 468 469 def __le__(self, y): # real signature unknown; restored from __doc__ 470 """ x.__le__(y) <==> x<=y """ 471 pass 472 473 def __lt__(self, y): # real signature unknown; restored from __doc__ 474 """ x.__lt__(y) <==> x<y """ 475 pass 476 477 @staticmethod # known case of __new__ 478 def __new__(S, *more): # real signature unknown; restored from __doc__ 479 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 480 pass 481 482 def __ne__(self, y): # real signature unknown; restored from __doc__ 483 """ x.__ne__(y) <==> x!=y """ 484 pass 485 486 def __repr__(self): # real signature unknown; restored from __doc__ 487 """ x.__repr__() <==> repr(x) """ 488 pass 489 490 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 491 """ x.__setitem__(i, y) <==> x[i]=y """ 492 pass 493 494 format = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 495 496 itemsize = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 497 498 ndim = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 499 500 readonly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 501 502 shape = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 503 504 strides = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 505 506 suboffsets = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 507 508 509 510 class property(object): 511 """ 512 property(fget=None, fset=None, fdel=None, doc=None) -> property attribute 513 514 fget is a function to be used for getting an attribute value, and likewise 515 fset is a function for setting, and fdel a function for del'ing, an 516 attribute. Typical use is to define a managed attribute x: 517 518 class C(object): 519 def getx(self): return self._x 520 def setx(self, value): self._x = value 521 def delx(self): del self._x 522 x = property(getx, setx, delx, "I'm the 'x' property.") 523 524 Decorators make defining new properties or modifying existing ones easy: 525 526 class C(object): 527 @property 528 def x(self): 529 "I am the 'x' property." 530 return self._x 531 @x.setter 532 def x(self, value): 533 self._x = value 534 @x.deleter 535 def x(self): 536 del self._x 537 """ 538 def deleter(self, *args, **kwargs): # real signature unknown 539 """ Descriptor to change the deleter on a property. """ 540 pass 541 542 def getter(self, *args, **kwargs): # real signature unknown 543 """ Descriptor to change the getter on a property. """ 544 pass 545 546 def setter(self, *args, **kwargs): # real signature unknown 547 """ Descriptor to change the setter on a property. """ 548 pass 549 550 def __delete__(self, obj): # real signature unknown; restored from __doc__ 551 """ descr.__delete__(obj) """ 552 pass 553 554 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 555 """ x.__getattribute__('name') <==> x.name """ 556 pass 557 558 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 559 """ descr.__get__(obj[, type]) -> value """ 560 pass 561 562 def __init__(self, fget=None, fset=None, fdel=None, doc=None): # known special case of property.__init__ 563 """ 564 property(fget=None, fset=None, fdel=None, doc=None) -> property attribute 565 566 fget is a function to be used for getting an attribute value, and likewise 567 fset is a function for setting, and fdel a function for del'ing, an 568 attribute. Typical use is to define a managed attribute x: 569 570 class C(object): 571 def getx(self): return self._x 572 def setx(self, value): self._x = value 573 def delx(self): del self._x 574 x = property(getx, setx, delx, "I'm the 'x' property.") 575 576 Decorators make defining new properties or modifying existing ones easy: 577 578 class C(object): 579 @property 580 def x(self): 581 "I am the 'x' property." 582 return self._x 583 @x.setter 584 def x(self, value): 585 self._x = value 586 @x.deleter 587 def x(self): 588 del self._x 589 590 # (copied from class doc) 591 """ 592 pass 593 594 @staticmethod # known case of __new__ 595 def __new__(S, *more): # real signature unknown; restored from __doc__ 596 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 597 pass 598 599 def __set__(self, obj, value): # real signature unknown; restored from __doc__ 600 """ descr.__set__(obj, value) """ 601 pass 602 603 fdel = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 604 605 fget = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 606 607 fset = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 608 609 610 611 class reversed(object): 612 """ 613 reversed(sequence) -> reverse iterator over values of the sequence 614 615 Return a reverse iterator 616 """ 617 def next(self): # real signature unknown; restored from __doc__ 618 """ x.next() -> the next value, or raise StopIteration """ 619 pass 620 621 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 622 """ x.__getattribute__('name') <==> x.name """ 623 pass 624 625 def __init__(self, sequence): # real signature unknown; restored from __doc__ 626 pass 627 628 def __iter__(self): # real signature unknown; restored from __doc__ 629 """ x.__iter__() <==> iter(x) """ 630 pass 631 632 def __length_hint__(self, *args, **kwargs): # real signature unknown 633 """ Private method returning an estimate of len(list(it)). """ 634 pass 635 636 @staticmethod # known case of __new__ 637 def __new__(S, *more): # real signature unknown; restored from __doc__ 638 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 639 pass 640 641 642 class set(object): 643 """ 644 set() -> new empty set object 645 set(iterable) -> new set object 646 647 Build an unordered collection of unique elements. 648 """ 649 def add(self, *args, **kwargs): # real signature unknown 650 """ 651 Add an element to a set. 652 653 This has no effect if the element is already present. 654 """ 655 pass 656 657 def clear(self, *args, **kwargs): # real signature unknown 658 """ Remove all elements from this set. """ 659 pass 660 661 def copy(self, *args, **kwargs): # real signature unknown 662 """ Return a shallow copy of a set. """ 663 pass 664 665 def difference(self, *args, **kwargs): # real signature unknown 666 """ 667 Return the difference of two or more sets as a new set. 668 669 (i.e. all elements that are in this set but not the others.) 670 """ 671 pass 672 673 def difference_update(self, *args, **kwargs): # real signature unknown 674 """ Remove all elements of another set from this set. """ 675 pass 676 677 def discard(self, *args, **kwargs): # real signature unknown 678 """ 679 Remove an element from a set if it is a member. 680 681 If the element is not a member, do nothing. 682 """ 683 pass 684 685 def intersection(self, *args, **kwargs): # real signature unknown 686 """ 687 Return the intersection of two or more sets as a new set. 688 689 (i.e. elements that are common to all of the sets.) 690 """ 691 pass 692 693 def intersection_update(self, *args, **kwargs): # real signature unknown 694 """ Update a set with the intersection of itself and another. """ 695 pass 696 697 def isdisjoint(self, *args, **kwargs): # real signature unknown 698 """ Return True if two sets have a null intersection. """ 699 pass 700 701 def issubset(self, *args, **kwargs): # real signature unknown 702 """ Report whether another set contains this set. """ 703 pass 704 705 def issuperset(self, *args, **kwargs): # real signature unknown 706 """ Report whether this set contains another set. """ 707 pass 708 709 def pop(self, *args, **kwargs): # real signature unknown 710 """ 711 Remove and return an arbitrary set element. 712 Raises KeyError if the set is empty. 713 """ 714 pass 715 716 def remove(self, *args, **kwargs): # real signature unknown 717 """ 718 Remove an element from a set; it must be a member. 719 720 If the element is not a member, raise a KeyError. 721 """ 722 pass 723 724 def symmetric_difference(self, *args, **kwargs): # real signature unknown 725 """ 726 Return the symmetric difference of two sets as a new set. 727 728 (i.e. all elements that are in exactly one of the sets.) 729 """ 730 pass 731 732 def symmetric_difference_update(self, *args, **kwargs): # real signature unknown 733 """ Update a set with the symmetric difference of itself and another. """ 734 pass 735 736 def union(self, *args, **kwargs): # real signature unknown 737 """ 738 Return the union of sets as a new set. 739 740 (i.e. all elements that are in either set.) 741 """ 742 pass 743 744 def update(self, *args, **kwargs): # real signature unknown 745 """ Update a set with the union of itself and others. """ 746 pass 747 748 def __and__(self, y): # real signature unknown; restored from __doc__ 749 """ x.__and__(y) <==> x&y """ 750 pass 751 752 def __cmp__(self, y): # real signature unknown; restored from __doc__ 753 """ x.__cmp__(y) <==> cmp(x,y) """ 754 pass 755 756 def __contains__(self, y): # real signature unknown; restored from __doc__ 757 """ x.__contains__(y) <==> y in x. """ 758 pass 759 760 def __eq__(self, y): # real signature unknown; restored from __doc__ 761 """ x.__eq__(y) <==> x==y """ 762 pass 763 764 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 765 """ x.__getattribute__('name') <==> x.name """ 766 pass 767 768 def __ge__(self, y): # real signature unknown; restored from __doc__ 769 """ x.__ge__(y) <==> x>=y """ 770 pass 771 772 def __gt__(self, y): # real signature unknown; restored from __doc__ 773 """ x.__gt__(y) <==> x>y """ 774 pass 775 776 def __iand__(self, y): # real signature unknown; restored from __doc__ 777 """ x.__iand__(y) <==> x&=y """ 778 pass 779 780 def __init__(self, seq=()): # known special case of set.__init__ 781 """ 782 set() -> new empty set object 783 set(iterable) -> new set object 784 785 Build an unordered collection of unique elements. 786 # (copied from class doc) 787 """ 788 pass 789 790 def __ior__(self, y): # real signature unknown; restored from __doc__ 791 """ x.__ior__(y) <==> x|=y """ 792 pass 793 794 def __isub__(self, y): # real signature unknown; restored from __doc__ 795 """ x.__isub__(y) <==> x-=y """ 796 pass 797 798 def __iter__(self): # real signature unknown; restored from __doc__ 799 """ x.__iter__() <==> iter(x) """ 800 pass 801 802 def __ixor__(self, y): # real signature unknown; restored from __doc__ 803 """ x.__ixor__(y) <==> x^=y """ 804 pass 805 806 def __len__(self): # real signature unknown; restored from __doc__ 807 """ x.__len__() <==> len(x) """ 808 pass 809 810 def __le__(self, y): # real signature unknown; restored from __doc__ 811 """ x.__le__(y) <==> x<=y """ 812 pass 813 814 def __lt__(self, y): # real signature unknown; restored from __doc__ 815 """ x.__lt__(y) <==> x<y """ 816 pass 817 818 @staticmethod # known case of __new__ 819 def __new__(S, *more): # real signature unknown; restored from __doc__ 820 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 821 pass 822 823 def __ne__(self, y): # real signature unknown; restored from __doc__ 824 """ x.__ne__(y) <==> x!=y """ 825 pass 826 827 def __or__(self, y): # real signature unknown; restored from __doc__ 828 """ x.__or__(y) <==> x|y """ 829 pass 830 831 def __rand__(self, y): # real signature unknown; restored from __doc__ 832 """ x.__rand__(y) <==> y&x """ 833 pass 834 835 def __reduce__(self, *args, **kwargs): # real signature unknown 836 """ Return state information for pickling. """ 837 pass 838 839 def __repr__(self): # real signature unknown; restored from __doc__ 840 """ x.__repr__() <==> repr(x) """ 841 pass 842 843 def __ror__(self, y): # real signature unknown; restored from __doc__ 844 """ x.__ror__(y) <==> y|x """ 845 pass 846 847 def __rsub__(self, y): # real signature unknown; restored from __doc__ 848 """ x.__rsub__(y) <==> y-x """ 849 pass 850 851 def __rxor__(self, y): # real signature unknown; restored from __doc__ 852 """ x.__rxor__(y) <==> y^x """ 853 pass 854 855 def __sizeof__(self): # real signature unknown; restored from __doc__ 856 """ S.__sizeof__() -> size of S in memory, in bytes """ 857 pass 858 859 def __sub__(self, y): # real signature unknown; restored from __doc__ 860 """ x.__sub__(y) <==> x-y """ 861 pass 862 863 def __xor__(self, y): # real signature unknown; restored from __doc__ 864 """ x.__xor__(y) <==> x^y """ 865 pass 866 867 __hash__ = None 868 869 870 class slice(object): 871 """ 872 slice(stop) 873 slice(start, stop[, step]) 874 875 Create a slice object. This is used for extended slicing (e.g. a[0:10:2]). 876 """ 877 def indices(self, len): # real signature unknown; restored from __doc__ 878 """ 879 S.indices(len) -> (start, stop, stride) 880 881 Assuming a sequence of length len, calculate the start and stop 882 indices, and the stride length of the extended slice described by 883 S. Out of bounds indices are clipped in a manner consistent with the 884 handling of normal slices. 885 """ 886 pass 887 888 def __cmp__(self, y): # real signature unknown; restored from __doc__ 889 """ x.__cmp__(y) <==> cmp(x,y) """ 890 pass 891 892 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 893 """ x.__getattribute__('name') <==> x.name """ 894 pass 895 896 def __hash__(self): # real signature unknown; restored from __doc__ 897 """ x.__hash__() <==> hash(x) """ 898 pass 899 900 def __init__(self, stop): # real signature unknown; restored from __doc__ 901 pass 902 903 @staticmethod # known case of __new__ 904 def __new__(S, *more): # real signature unknown; restored from __doc__ 905 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 906 pass 907 908 def __reduce__(self, *args, **kwargs): # real signature unknown 909 """ Return state information for pickling. """ 910 pass 911 912 def __repr__(self): # real signature unknown; restored from __doc__ 913 """ x.__repr__() <==> repr(x) """ 914 pass 915 916 start = property(lambda self: 0) 917 """:type: int""" 918 919 step = property(lambda self: 0) 920 """:type: int""" 921 922 stop = property(lambda self: 0) 923 """:type: int""" 924 925 926 927 class staticmethod(object): 928 """ 929 staticmethod(function) -> method 930 931 Convert a function to be a static method. 932 933 A static method does not receive an implicit first argument. 934 To declare a static method, use this idiom: 935 936 class C: 937 def f(arg1, arg2, ...): ... 938 f = staticmethod(f) 939 940 It can be called either on the class (e.g. C.f()) or on an instance 941 (e.g. C().f()). The instance is ignored except for its class. 942 943 Static methods in Python are similar to those found in Java or C++. 944 For a more advanced concept, see the classmethod builtin. 945 """ 946 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 947 """ x.__getattribute__('name') <==> x.name """ 948 pass 949 950 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 951 """ descr.__get__(obj[, type]) -> value """ 952 pass 953 954 def __init__(self, function): # real signature unknown; restored from __doc__ 955 pass 956 957 @staticmethod # known case of __new__ 958 def __new__(S, *more): # real signature unknown; restored from __doc__ 959 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 960 pass 961 962 __func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 963 964 965 966 class super(object): 967 """ 968 super(type, obj) -> bound super object; requires isinstance(obj, type) 969 super(type) -> unbound super object 970 super(type, type2) -> bound super object; requires issubclass(type2, type) 971 Typical use to call a cooperative superclass method: 972 class C(B): 973 def meth(self, arg): 974 super(C, self).meth(arg) 975 """ 976 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 977 """ x.__getattribute__('name') <==> x.name """ 978 pass 979 980 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 981 """ descr.__get__(obj[, type]) -> value """ 982 pass 983 984 def __init__(self, type1, type2=None): # known special case of super.__init__ 985 """ 986 super(type, obj) -> bound super object; requires isinstance(obj, type) 987 super(type) -> unbound super object 988 super(type, type2) -> bound super object; requires issubclass(type2, type) 989 Typical use to call a cooperative superclass method: 990 class C(B): 991 def meth(self, arg): 992 super(C, self).meth(arg) 993 # (copied from class doc) 994 """ 995 pass 996 997 @staticmethod # known case of __new__ 998 def __new__(S, *more): # real signature unknown; restored from __doc__ 999 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1000 pass 1001 1002 def __repr__(self): # real signature unknown; restored from __doc__ 1003 """ x.__repr__() <==> repr(x) """ 1004 pass 1005 1006 __self_class__ = property(lambda self: type(object)) 1007 """the type of the instance invoking super(); may be None 1008 1009 :type: type 1010 """ 1011 1012 __self__ = property(lambda self: type(object)) 1013 """the instance invoking super(); may be None 1014 1015 :type: type 1016 """ 1017 1018 __thisclass__ = property(lambda self: type(object)) 1019 """the class invoking super() 1020 1021 :type: type 1022 """ 1023 1024 1025 1026 class tuple(object): 1027 """ 1028 tuple() -> empty tuple 1029 tuple(iterable) -> tuple initialized from iterable's items 1030 1031 If the argument is a tuple, the return value is the same object. 1032 """ 1033 def count(self, value): # real signature unknown; restored from __doc__ 1034 """ T.count(value) -> integer -- return number of occurrences of value """ 1035 return 0 1036 1037 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 1038 """ 1039 T.index(value, [start, [stop]]) -> integer -- return first index of value. 1040 Raises ValueError if the value is not present. 1041 """ 1042 return 0 1043 1044 def __add__(self, y): # real signature unknown; restored from __doc__ 1045 """ x.__add__(y) <==> x+y """ 1046 pass 1047 1048 def __contains__(self, y): # real signature unknown; restored from __doc__ 1049 """ x.__contains__(y) <==> y in x """ 1050 pass 1051 1052 def __eq__(self, y): # real signature unknown; restored from __doc__ 1053 """ x.__eq__(y) <==> x==y """ 1054 pass 1055 1056 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1057 """ x.__getattribute__('name') <==> x.name """ 1058 pass 1059 1060 def __getitem__(self, y): # real signature unknown; restored from __doc__ 1061 """ x.__getitem__(y) <==> x[y] """ 1062 pass 1063 1064 def __getnewargs__(self, *args, **kwargs): # real signature unknown 1065 pass 1066 1067 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 1068 """ 1069 x.__getslice__(i, j) <==> x[i:j] 1070 1071 Use of negative indices is not supported. 1072 """ 1073 pass 1074 1075 def __ge__(self, y): # real signature unknown; restored from __doc__ 1076 """ x.__ge__(y) <==> x>=y """ 1077 pass 1078 1079 def __gt__(self, y): # real signature unknown; restored from __doc__ 1080 """ x.__gt__(y) <==> x>y """ 1081 pass 1082 1083 def __hash__(self): # real signature unknown; restored from __doc__ 1084 """ x.__hash__() <==> hash(x) """ 1085 pass 1086 1087 def __init__(self, seq=()): # known special case of tuple.__init__ 1088 """ 1089 tuple() -> empty tuple 1090 tuple(iterable) -> tuple initialized from iterable's items 1091 1092 If the argument is a tuple, the return value is the same object. 1093 # (copied from class doc) 1094 """ 1095 pass 1096 1097 def __iter__(self): # real signature unknown; restored from __doc__ 1098 """ x.__iter__() <==> iter(x) """ 1099 pass 1100 1101 def __len__(self): # real signature unknown; restored from __doc__ 1102 """ x.__len__() <==> len(x) """ 1103 pass 1104 1105 def __le__(self, y): # real signature unknown; restored from __doc__ 1106 """ x.__le__(y) <==> x<=y """ 1107 pass 1108 1109 def __lt__(self, y): # real signature unknown; restored from __doc__ 1110 """ x.__lt__(y) <==> x<y """ 1111 pass 1112 1113 def __mul__(self, n): # real signature unknown; restored from __doc__ 1114 """ x.__mul__(n) <==> x*n """ 1115 pass 1116 1117 @staticmethod # known case of __new__ 1118 def __new__(S, *more): # real signature unknown; restored from __doc__ 1119 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1120 pass 1121 1122 def __ne__(self, y): # real signature unknown; restored from __doc__ 1123 """ x.__ne__(y) <==> x!=y """ 1124 pass 1125 1126 def __repr__(self): # real signature unknown; restored from __doc__ 1127 """ x.__repr__() <==> repr(x) """ 1128 pass 1129 1130 def __rmul__(self, n): # real signature unknown; restored from __doc__ 1131 """ x.__rmul__(n) <==> n*x """ 1132 pass 1133 1134 1135 class type(object): 1136 """ 1137 type(object) -> the object's type 1138 type(name, bases, dict) -> a new type 1139 """ 1140 def mro(self): # real signature unknown; restored from __doc__ 1141 """ 1142 mro() -> list 1143 return a type's method resolution order 1144 """ 1145 return [] 1146 1147 def __call__(self, *more): # real signature unknown; restored from __doc__ 1148 """ x.__call__(...) <==> x(...) """ 1149 pass 1150 1151 def __delattr__(self, name): # real signature unknown; restored from __doc__ 1152 """ x.__delattr__('name') <==> del x.name """ 1153 pass 1154 1155 def __eq__(self, y): # real signature unknown; restored from __doc__ 1156 """ x.__eq__(y) <==> x==y """ 1157 pass 1158 1159 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1160 """ x.__getattribute__('name') <==> x.name """ 1161 pass 1162 1163 def __ge__(self, y): # real signature unknown; restored from __doc__ 1164 """ x.__ge__(y) <==> x>=y """ 1165 pass 1166 1167 def __gt__(self, y): # real signature unknown; restored from __doc__ 1168 """ x.__gt__(y) <==> x>y """ 1169 pass 1170 1171 def __hash__(self): # real signature unknown; restored from __doc__ 1172 """ x.__hash__() <==> hash(x) """ 1173 pass 1174 1175 def __init__(cls, what, bases=None, dict=None): # known special case of type.__init__ 1176 """ 1177 type(object) -> the object's type 1178 type(name, bases, dict) -> a new type 1179 # (copied from class doc) 1180 """ 1181 pass 1182 1183 def __instancecheck__(self): # real signature unknown; restored from __doc__ 1184 """ 1185 __instancecheck__() -> bool 1186 check if an object is an instance 1187 """ 1188 return False 1189 1190 def __le__(self, y): # real signature unknown; restored from __doc__ 1191 """ x.__le__(y) <==> x<=y """ 1192 pass 1193 1194 def __lt__(self, y): # real signature unknown; restored from __doc__ 1195 """ x.__lt__(y) <==> x<y """ 1196 pass 1197 1198 @staticmethod # known case of __new__ 1199 def __new__(S, *more): # real signature unknown; restored from __doc__ 1200 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1201 pass 1202 1203 def __ne__(self, y): # real signature unknown; restored from __doc__ 1204 """ x.__ne__(y) <==> x!=y """ 1205 pass 1206 1207 def __repr__(self): # real signature unknown; restored from __doc__ 1208 """ x.__repr__() <==> repr(x) """ 1209 pass 1210 1211 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 1212 """ x.__setattr__('name', value) <==> x.name = value """ 1213 pass 1214 1215 def __subclasscheck__(self): # real signature unknown; restored from __doc__ 1216 """ 1217 __subclasscheck__() -> bool 1218 check if a class is a subclass 1219 """ 1220 return False 1221 1222 def __subclasses__(self): # real signature unknown; restored from __doc__ 1223 """ __subclasses__() -> list of immediate subclasses """ 1224 return [] 1225 1226 __abstractmethods__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1227 1228 1229 __bases__ = ( 1230 object, 1231 ) 1232 __base__ = object 1233 __basicsize__ = 436 1234 __dictoffset__ = 132 1235 __dict__ = None # (!) real value is '' 1236 __flags__ = -2146544149 1237 __itemsize__ = 20 1238 __mro__ = ( 1239 None, # (!) forward: type, real value is '' 1240 object, 1241 ) 1242 __name__ = 'type' 1243 __weakrefoffset__ = 184 1244 1245 1246 class unicode(basestring): 1247 """ 1248 unicode(object='') -> unicode object 1249 unicode(string[, encoding[, errors]]) -> unicode object 1250 1251 Create a new Unicode object from the given encoded string. 1252 encoding defaults to the current default string encoding. 1253 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 1254 """ 1255 def capitalize(self): # real signature unknown; restored from __doc__ 1256 """ 1257 S.capitalize() -> unicode 1258 1259 Return a capitalized version of S, i.e. make the first character 1260 have upper case and the rest lower case. 1261 """ 1262 return u"" 1263 1264 def center(self, width, fillchar=None): # real signature unknown; restored from __doc__ 1265 """ 1266 S.center(width[, fillchar]) -> unicode 1267 1268 Return S centered in a Unicode string of length width. Padding is 1269 done using the specified fill character (default is a space) 1270 """ 1271 return u"" 1272 1273 def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 1274 """ 1275 S.count(sub[, start[, end]]) -> int 1276 1277 Return the number of non-overlapping occurrences of substring sub in 1278 Unicode string S[start:end]. Optional arguments start and end are 1279 interpreted as in slice notation. 1280 """ 1281 return 0 1282 1283 def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 1284 """ 1285 S.decode([encoding[,errors]]) -> string or unicode 1286 1287 Decodes S using the codec registered for encoding. encoding defaults 1288 to the default encoding. errors may be given to set a different error 1289 handling scheme. Default is 'strict' meaning that encoding errors raise 1290 a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' 1291 as well as any other name registered with codecs.register_error that is 1292 able to handle UnicodeDecodeErrors. 1293 """ 1294 return "" 1295 1296 def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 1297 """ 1298 S.encode([encoding[,errors]]) -> string or unicode 1299 1300 Encodes S using the codec registered for encoding. encoding defaults 1301 to the default encoding. errors may be given to set a different error 1302 handling scheme. Default is 'strict' meaning that encoding errors raise 1303 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 1304 'xmlcharrefreplace' as well as any other name registered with 1305 codecs.register_error that can handle UnicodeEncodeErrors. 1306 """ 1307 return "" 1308 1309 def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__ 1310 """ 1311 S.endswith(suffix[, start[, end]]) -> bool 1312 1313 Return True if S ends with the specified suffix, False otherwise. 1314 With optional start, test S beginning at that position. 1315 With optional end, stop comparing S at that position. 1316 suffix can also be a tuple of strings to try. 1317 """ 1318 return False 1319 1320 def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__ 1321 """ 1322 S.expandtabs([tabsize]) -> unicode 1323 1324 Return a copy of S where all tab characters are expanded using spaces. 1325 If tabsize is not given, a tab size of 8 characters is assumed. 1326 """ 1327 return u"" 1328 1329 def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 1330 """ 1331 S.find(sub [,start [,end]]) -> int 1332 1333 Return the lowest index in S where substring sub is found, 1334 such that sub is contained within S[start:end]. Optional 1335 arguments start and end are interpreted as in slice notation. 1336 1337 Return -1 on failure. 1338 """ 1339 return 0 1340 1341 def format(*args, **kwargs): # known special case of unicode.format 1342 """ 1343 S.format(*args, **kwargs) -> unicode 1344 1345 Return a formatted version of S, using substitutions from args and kwargs. 1346 The substitutions are identified by braces ('{' and '}'). 1347 """ 1348 pass 1349 1350 def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 1351 """ 1352 S.index(sub [,start [,end]]) -> int 1353 1354 Like S.find() but raise ValueError when the substring is not found. 1355 """ 1356 return 0 1357 1358 def isalnum(self): # real signature unknown; restored from __doc__ 1359 """ 1360 S.isalnum() -> bool 1361 1362 Return True if all characters in S are alphanumeric 1363 and there is at least one character in S, False otherwise. 1364 """ 1365 return False 1366 1367 def isalpha(self): # real signature unknown; restored from __doc__ 1368 """ 1369 S.isalpha() -> bool 1370 1371 Return True if all characters in S are alphabetic 1372 and there is at least one character in S, False otherwise. 1373 """ 1374 return False 1375 1376 def isdecimal(self): # real signature unknown; restored from __doc__ 1377 """ 1378 S.isdecimal() -> bool 1379 1380 Return True if there are only decimal characters in S, 1381 False otherwise. 1382 """ 1383 return False 1384 1385 def isdigit(self): # real signature unknown; restored from __doc__ 1386 """ 1387 S.isdigit() -> bool 1388 1389 Return True if all characters in S are digits 1390 and there is at least one character in S, False otherwise. 1391 """ 1392 return False 1393 1394 def islower(self): # real signature unknown; restored from __doc__ 1395 """ 1396 S.islower() -> bool 1397 1398 Return True if all cased characters in S are lowercase and there is 1399 at least one cased character in S, False otherwise. 1400 """ 1401 return False 1402 1403 def isnumeric(self): # real signature unknown; restored from __doc__ 1404 """ 1405 S.isnumeric() -> bool 1406 1407 Return True if there are only numeric characters in S, 1408 False otherwise. 1409 """ 1410 return False 1411 1412 def isspace(self): # real signature unknown; restored from __doc__ 1413 """ 1414 S.isspace() -> bool 1415 1416 Return True if all characters in S are whitespace 1417 and there is at least one character in S, False otherwise. 1418 """ 1419 return False 1420 1421 def istitle(self): # real signature unknown; restored from __doc__ 1422 """ 1423 S.istitle() -> bool 1424 1425 Return True if S is a titlecased string and there is at least one 1426 character in S, i.e. upper- and titlecase characters may only 1427 follow uncased characters and lowercase characters only cased ones. 1428 Return False otherwise. 1429 """ 1430 return False 1431 1432 def isupper(self): # real signature unknown; restored from __doc__ 1433 """ 1434 S.isupper() -> bool 1435 1436 Return True if all cased characters in S are uppercase and there is 1437 at least one cased character in S, False otherwise. 1438 """ 1439 return False 1440 1441 def join(self, iterable): # real signature unknown; restored from __doc__ 1442 """ 1443 S.join(iterable) -> unicode 1444 1445 Return a string which is the concatenation of the strings in the 1446 iterable. The separator between elements is S. 1447 """ 1448 return u"" 1449 1450 def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 1451 """ 1452 S.ljust(width[, fillchar]) -> int 1453 1454 Return S left-justified in a Unicode string of length width. Padding is 1455 done using the specified fill character (default is a space). 1456 """ 1457 return 0 1458 1459 def lower(self): # real signature unknown; restored from __doc__ 1460 """ 1461 S.lower() -> unicode 1462 1463 Return a copy of the string S converted to lowercase. 1464 """ 1465 return u"" 1466 1467 def lstrip(self, chars=None): # real signature unknown; restored from __doc__ 1468 """ 1469 S.lstrip([chars]) -> unicode 1470 1471 Return a copy of the string S with leading whitespace removed. 1472 If chars is given and not None, remove characters in chars instead. 1473 If chars is a str, it will be converted to unicode before stripping 1474 """ 1475 return u"" 1476 1477 def partition(self, sep): # real signature unknown; restored from __doc__ 1478 """ 1479 S.partition(sep) -> (head, sep, tail) 1480 1481 Search for the separator sep in S, and return the part before it, 1482 the separator itself, and the part after it. If the separator is not 1483 found, return S and two empty strings. 1484 """ 1485 pass 1486 1487 def replace(self, old, new, count=None): # real signature unknown; restored from __doc__ 1488 """ 1489 S.replace(old, new[, count]) -> unicode 1490 1491 Return a copy of S with all occurrences of substring 1492 old replaced by new. If the optional argument count is 1493 given, only the first count occurrences are replaced. 1494 """ 1495 return u"" 1496 1497 def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 1498 """ 1499 S.rfind(sub [,start [,end]]) -> int 1500 1501 Return the highest index in S where substring sub is found, 1502 such that sub is contained within S[start:end]. Optional 1503 arguments start and end are interpreted as in slice notation. 1504 1505 Return -1 on failure. 1506 """ 1507 return 0 1508 1509 def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 1510 """ 1511 S.rindex(sub [,start [,end]]) -> int 1512 1513 Like S.rfind() but raise ValueError when the substring is not found. 1514 """ 1515 return 0 1516 1517 def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 1518 """ 1519 S.rjust(width[, fillchar]) -> unicode 1520 1521 Return S right-justified in a Unicode string of length width. Padding is 1522 done using the specified fill character (default is a space). 1523 """ 1524 return u"" 1525 1526 def rpartition(self, sep): # real signature unknown; restored from __doc__ 1527 """ 1528 S.rpartition(sep) -> (head, sep, tail) 1529 1530 Search for the separator sep in S, starting at the end of S, and return 1531 the part before it, the separator itself, and the part after it. If the 1532 separator is not found, return two empty strings and S. 1533 """ 1534 pass 1535 1536 def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 1537 """ 1538 S.rsplit([sep [,maxsplit]]) -> list of strings 1539 1540 Return a list of the words in S, using sep as the 1541 delimiter string, starting at the end of the string and 1542 working to the front. If maxsplit is given, at most maxsplit 1543 splits are done. If sep is not specified, any whitespace string 1544 is a separator. 1545 """ 1546 return [] 1547 1548 def rstrip(self, chars=None): # real signature unknown; restored from __doc__ 1549 """ 1550 S.rstrip([chars]) -> unicode 1551 1552 Return a copy of the string S with trailing whitespace removed. 1553 If chars is given and not None, remove characters in chars instead. 1554 If chars is a str, it will be converted to unicode before stripping 1555 """ 1556 return u"" 1557 1558 def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 1559 """ 1560 S.split([sep [,maxsplit]]) -> list of strings 1561 1562 Return a list of the words in S, using sep as the 1563 delimiter string. If maxsplit is given, at most maxsplit 1564 splits are done. If sep is not specified or is None, any 1565 whitespace string is a separator and empty strings are 1566 removed from the result. 1567 """ 1568 return [] 1569 1570 def splitlines(self, keepends=False): # real signature unknown; restored from __doc__ 1571 """ 1572 S.splitlines(keepends=False) -> list of strings 1573 1574 Return a list of the lines in S, breaking at line boundaries. 1575 Line breaks are not included in the resulting list unless keepends 1576 is given and true. 1577 """ 1578 return [] 1579 1580 def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__ 1581 """ 1582 S.startswith(prefix[, start[, end]]) -> bool 1583 1584 Return True if S starts with the specified prefix, False otherwise. 1585 With optional start, test S beginning at that position. 1586 With optional end, stop comparing S at that position. 1587 prefix can also be a tuple of strings to try. 1588 """ 1589 return False 1590 1591 def strip(self, chars=None): # real signature unknown; restored from __doc__ 1592 """ 1593 S.strip([chars]) -> unicode 1594 1595 Return a copy of the string S with leading and trailing 1596 whitespace removed. 1597 If chars is given and not None, remove characters in chars instead. 1598 If chars is a str, it will be converted to unicode before stripping 1599 """ 1600 return u"" 1601 1602 def swapcase(self): # real signature unknown; restored from __doc__ 1603 """ 1604 S.swapcase() -> unicode 1605 1606 Return a copy of S with uppercase characters converted to lowercase 1607 and vice versa. 1608 """ 1609 return u"" 1610 1611 def title(self): # real signature unknown; restored from __doc__ 1612 """ 1613 S.title() -> unicode 1614 1615 Return a titlecased version of S, i.e. words start with title case 1616 characters, all remaining cased characters have lower case. 1617 """ 1618 return u"" 1619 1620 def translate(self, table): # real signature unknown; restored from __doc__ 1621 """ 1622 S.translate(table) -> unicode 1623 1624 Return a copy of the string S, where all characters have been mapped 1625 through the given translation table, which must be a mapping of 1626 Unicode ordinals to Unicode ordinals, Unicode strings or None. 1627 Unmapped characters are left untouched. Characters mapped to None 1628 are deleted. 1629 """ 1630 return u"" 1631 1632 def upper(self): # real signature unknown; restored from __doc__ 1633 """ 1634 S.upper() -> unicode 1635 1636 Return a copy of S converted to uppercase. 1637 """ 1638 return u"" 1639 1640 def zfill(self, width): # real signature unknown; restored from __doc__ 1641 """ 1642 S.zfill(width) -> unicode 1643 1644 Pad a numeric string S with zeros on the left, to fill a field 1645 of the specified width. The string S is never truncated. 1646 """ 1647 return u"" 1648 1649 def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown 1650 pass 1651 1652 def _formatter_parser(self, *args, **kwargs): # real signature unknown 1653 pass 1654 1655 def __add__(self, y): # real signature unknown; restored from __doc__ 1656 """ x.__add__(y) <==> x+y """ 1657 pass 1658 1659 def __contains__(self, y): # real signature unknown; restored from __doc__ 1660 """ x.__contains__(y) <==> y in x """ 1661 pass 1662 1663 def __eq__(self, y): # real signature unknown; restored from __doc__ 1664 """ x.__eq__(y) <==> x==y """ 1665 pass 1666 1667 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 1668 """ 1669 S.__format__(format_spec) -> unicode 1670 1671 Return a formatted version of S as described by format_spec. 1672 """ 1673 return u"" 1674 1675 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1676 """ x.__getattribute__('name') <==> x.name """ 1677 pass 1678 1679 def __getitem__(self, y): # real signature unknown; restored from __doc__ 1680 """ x.__getitem__(y) <==> x[y] """ 1681 pass 1682 1683 def __getnewargs__(self, *args, **kwargs): # real signature unknown 1684 pass 1685 1686 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 1687 """ 1688 x.__getslice__(i, j) <==> x[i:j] 1689 1690 Use of negative indices is not supported. 1691 """ 1692 pass 1693 1694 def __ge__(self, y): # real signature unknown; restored from __doc__ 1695 """ x.__ge__(y) <==> x>=y """ 1696 pass 1697 1698 def __gt__(self, y): # real signature unknown; restored from __doc__ 1699 """ x.__gt__(y) <==> x>y """ 1700 pass 1701 1702 def __hash__(self): # real signature unknown; restored from __doc__ 1703 """ x.__hash__() <==> hash(x) """ 1704 pass 1705 1706 def __init__(self, string=u'', encoding=None, errors='strict'): # known special case of unicode.__init__ 1707 """ 1708 unicode(object='') -> unicode object 1709 unicode(string[, encoding[, errors]]) -> unicode object 1710 1711 Create a new Unicode object from the given encoded string. 1712 encoding defaults to the current default string encoding. 1713 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 1714 # (copied from class doc) 1715 """ 1716 pass 1717 1718 def __len__(self): # real signature unknown; restored from __doc__ 1719 """ x.__len__() <==> len(x) """ 1720 pass 1721 1722 def __le__(self, y): # real signature unknown; restored from __doc__ 1723 """ x.__le__(y) <==> x<=y """ 1724 pass 1725 1726 def __lt__(self, y): # real signature unknown; restored from __doc__ 1727 """ x.__lt__(y) <==> x<y """ 1728 pass 1729 1730 def __mod__(self, y): # real signature unknown; restored from __doc__ 1731 """ x.__mod__(y) <==> x%y """ 1732 pass 1733 1734 def __mul__(self, n): # real signature unknown; restored from __doc__ 1735 """ x.__mul__(n) <==> x*n """ 1736 pass 1737 1738 @staticmethod # known case of __new__ 1739 def __new__(S, *more): # real signature unknown; restored from __doc__ 1740 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1741 pass 1742 1743 def __ne__(self, y): # real signature unknown; restored from __doc__ 1744 """ x.__ne__(y) <==> x!=y """ 1745 pass 1746 1747 def __repr__(self): # real signature unknown; restored from __doc__ 1748 """ x.__repr__() <==> repr(x) """ 1749 pass 1750 1751 def __rmod__(self, y): # real signature unknown; restored from __doc__ 1752 """ x.__rmod__(y) <==> y%x """ 1753 pass 1754 1755 def __rmul__(self, n): # real signature unknown; restored from __doc__ 1756 """ x.__rmul__(n) <==> n*x """ 1757 pass 1758 1759 def __sizeof__(self): # real signature unknown; restored from __doc__ 1760 """ S.__sizeof__() -> size of S in memory, in bytes """ 1761 pass 1762 1763 def __str__(self): # real signature unknown; restored from __doc__ 1764 """ x.__str__() <==> str(x) """ 1765 pass 1766 1767 1768 class xrange(object): 1769 """ 1770 xrange(stop) -> xrange object 1771 xrange(start, stop[, step]) -> xrange object 1772 1773 Like range(), but instead of returning a list, returns an object that 1774 generates the numbers in the range on demand. For looping, this is 1775 slightly faster than range() and more memory efficient. 1776 """ 1777 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1778 """ x.__getattribute__('name') <==> x.name """ 1779 pass 1780 1781 def __getitem__(self, y): # real signature unknown; restored from __doc__ 1782 """ x.__getitem__(y) <==> x[y] """ 1783 pass 1784 1785 def __init__(self, stop): # real signature unknown; restored from __doc__ 1786 pass 1787 1788 def __iter__(self): # real signature unknown; restored from __doc__ 1789 """ x.__iter__() <==> iter(x) """ 1790 pass 1791 1792 def __len__(self): # real signature unknown; restored from __doc__ 1793 """ x.__len__() <==> len(x) """ 1794 pass 1795 1796 @staticmethod # known case of __new__ 1797 def __new__(S, *more): # real signature unknown; restored from __doc__ 1798 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1799 pass 1800 1801 def __reduce__(self, *args, **kwargs): # real signature unknown 1802 pass 1803 1804 def __repr__(self): # real signature unknown; restored from __doc__ 1805 """ x.__repr__() <==> repr(x) """ 1806 pass 1807 1808 def __reversed__(self, *args, **kwargs): # real signature unknown 1809 """ Returns a reverse iterator. """ 1810 pass 1811 1812 1813 # variables with complex values 1814 1815 Ellipsis = None # (!) real value is '' 1816 1817 NotImplemented = None # (!) real value is ''
常用方法,举例如下:
列表是可变的,基本方法和字符串有很多相似的地方
1 >>> li = ['11',22,33,10] 2 >>> type(li) 3 <type 'list'> 4 >>> li.count('22') 5 0 6 >>> li.count(22) 7 1 8 >>> a = ['zz','dicky'] 9 >>> li.extend(a) 合并两个列表 10 >>> li 11 ['11', 22, 33, 10, 'zz', 'dicky'] 查询出元素在列表中的位置,不 12 13 存在就报错 14 >>> li.index('10') 15 Traceback (most recent call last): 16 File "<stdin>", line 1, in <module> 17 ValueError: '10' is not in list 18 >>> li.index(10) 19 3 20 >>> li 21 ['11', 22, 33, 10, 'zz', 'dicky'] 22 >>> li.insert(1,'kk') 插入 23 >>> li 24 ['11', 'kk', 22, 33, 10, 'zz', 'dicky'] 25 >>> li.pop() 默认输出最后一个,但是会返回删除的选项 26 'dicky' 27 >>> li.pop(0) 28 '11' 29 >>> li 30 ['kk', 22, 33, 10, 'zz'] 31 >>> li.remove(10) 移除某个元素 32 >>> li 33 ['kk', 22, 33, 'zz'] 34 >>> li.reverse() 翻转 35 >>> li 36 ['zz', 33, 22, 'kk'] 37 >>> li.sort() 排序 38 >>> li 39 [22, 33, 'kk', 'zz'] 40 >>> li.append(89) 添加元素 41 >>> li 42 [22, 33, 'kk', 'zz', 89] 43 >>>
5,元组
S = (1,2,3,4)
元组是不可变的,所以方法比较少,如下
1 class tuple(object): 2 """ 3 tuple() -> empty tuple 4 tuple(iterable) -> tuple initialized from iterable's items 5 6 If the argument is a tuple, the return value is the same object. 7 """ 8 def count(self, value): # real signature unknown; restored from __doc__ 9 """ T.count(value) -> integer -- return number of occurrences of value """ 10 return 0 11 12 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 13 """ 14 T.index(value, [start, [stop]]) -> integer -- return first index of value. 15 Raises ValueError if the value is not present. 16 """ 17 return 0 18 19 def __add__(self, y): # real signature unknown; restored from __doc__ 20 """ x.__add__(y) <==> x+y """ 21 pass 22 23 def __contains__(self, y): # real signature unknown; restored from __doc__ 24 """ x.__contains__(y) <==> y in x """ 25 pass 26 27 def __eq__(self, y): # real signature unknown; restored from __doc__ 28 """ x.__eq__(y) <==> x==y """ 29 pass 30 31 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 32 """ x.__getattribute__('name') <==> x.name """ 33 pass 34 35 def __getitem__(self, y): # real signature unknown; restored from __doc__ 36 """ x.__getitem__(y) <==> x[y] """ 37 pass 38 39 def __getnewargs__(self, *args, **kwargs): # real signature unknown 40 pass 41 42 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 43 """ 44 x.__getslice__(i, j) <==> x[i:j] 45 46 Use of negative indices is not supported. 47 """ 48 pass 49 50 def __ge__(self, y): # real signature unknown; restored from __doc__ 51 """ x.__ge__(y) <==> x>=y """ 52 pass 53 54 def __gt__(self, y): # real signature unknown; restored from __doc__ 55 """ x.__gt__(y) <==> x>y """ 56 pass 57 58 def __hash__(self): # real signature unknown; restored from __doc__ 59 """ x.__hash__() <==> hash(x) """ 60 pass 61 62 def __init__(self, seq=()): # known special case of tuple.__init__ 63 """ 64 tuple() -> empty tuple 65 tuple(iterable) -> tuple initialized from iterable's items 66 67 If the argument is a tuple, the return value is the same object. 68 # (copied from class doc) 69 """ 70 pass 71 72 def __iter__(self): # real signature unknown; restored from __doc__ 73 """ x.__iter__() <==> iter(x) """ 74 pass 75 76 def __len__(self): # real signature unknown; restored from __doc__ 77 """ x.__len__() <==> len(x) """ 78 pass 79 80 def __le__(self, y): # real signature unknown; restored from __doc__ 81 """ x.__le__(y) <==> x<=y """ 82 pass 83 84 def __lt__(self, y): # real signature unknown; restored from __doc__ 85 """ x.__lt__(y) <==> x<y """ 86 pass 87 88 def __mul__(self, n): # real signature unknown; restored from __doc__ 89 """ x.__mul__(n) <==> x*n """ 90 pass 91 92 @staticmethod # known case of __new__ 93 def __new__(S, *more): # real signature unknown; restored from __doc__ 94 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 95 pass 96 97 def __ne__(self, y): # real signature unknown; restored from __doc__ 98 """ x.__ne__(y) <==> x!=y """ 99 pass 100 101 def __repr__(self): # real signature unknown; restored from __doc__ 102 """ x.__repr__() <==> repr(x) """ 103 pass 104 105 def __rmul__(self, n): # real signature unknown; restored from __doc__ 106 """ x.__rmul__(n) <==> n*x """ 107 pass 108 109 110 class type(object): 111 """ 112 type(object) -> the object's type 113 type(name, bases, dict) -> a new type 114 """ 115 def mro(self): # real signature unknown; restored from __doc__ 116 """ 117 mro() -> list 118 return a type's method resolution order 119 """ 120 return [] 121 122 def __call__(self, *more): # real signature unknown; restored from __doc__ 123 """ x.__call__(...) <==> x(...) """ 124 pass 125 126 def __delattr__(self, name): # real signature unknown; restored from __doc__ 127 """ x.__delattr__('name') <==> del x.name """ 128 pass 129 130 def __eq__(self, y): # real signature unknown; restored from __doc__ 131 """ x.__eq__(y) <==> x==y """ 132 pass 133 134 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 135 """ x.__getattribute__('name') <==> x.name """ 136 pass 137 138 def __ge__(self, y): # real signature unknown; restored from __doc__ 139 """ x.__ge__(y) <==> x>=y """ 140 pass 141 142 def __gt__(self, y): # real signature unknown; restored from __doc__ 143 """ x.__gt__(y) <==> x>y """ 144 pass 145 146 def __hash__(self): # real signature unknown; restored from __doc__ 147 """ x.__hash__() <==> hash(x) """ 148 pass 149 150 def __init__(cls, what, bases=None, dict=None): # known special case of type.__init__ 151 """ 152 type(object) -> the object's type 153 type(name, bases, dict) -> a new type 154 # (copied from class doc) 155 """ 156 pass 157 158 def __instancecheck__(self): # real signature unknown; restored from __doc__ 159 """ 160 __instancecheck__() -> bool 161 check if an object is an instance 162 """ 163 return False 164 165 def __le__(self, y): # real signature unknown; restored from __doc__ 166 """ x.__le__(y) <==> x<=y """ 167 pass 168 169 def __lt__(self, y): # real signature unknown; restored from __doc__ 170 """ x.__lt__(y) <==> x<y """ 171 pass 172 173 @staticmethod # known case of __new__ 174 def __new__(S, *more): # real signature unknown; restored from __doc__ 175 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 176 pass 177 178 def __ne__(self, y): # real signature unknown; restored from __doc__ 179 """ x.__ne__(y) <==> x!=y """ 180 pass 181 182 def __repr__(self): # real signature unknown; restored from __doc__ 183 """ x.__repr__() <==> repr(x) """ 184 pass 185 186 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 187 """ x.__setattr__('name', value) <==> x.name = value """ 188 pass 189 190 def __subclasscheck__(self): # real signature unknown; restored from __doc__ 191 """ 192 __subclasscheck__() -> bool 193 check if a class is a subclass 194 """ 195 return False 196 197 def __subclasses__(self): # real signature unknown; restored from __doc__ 198 """ __subclasses__() -> list of immediate subclasses """ 199 return [] 200 201 __abstractmethods__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 202 203 204 __bases__ = ( 205 object, 206 ) 207 __base__ = object 208 __basicsize__ = 436 209 __dictoffset__ = 132 210 __dict__ = None # (!) real value is '' 211 __flags__ = -2146544149 212 __itemsize__ = 20 213 __mro__ = ( 214 None, # (!) forward: type, real value is '' 215 object, 216 ) 217 __name__ = 'type' 218 __weakrefoffset__ = 184 219 220 221 class unicode(basestring): 222 """ 223 unicode(object='') -> unicode object 224 unicode(string[, encoding[, errors]]) -> unicode object 225 226 Create a new Unicode object from the given encoded string. 227 encoding defaults to the current default string encoding. 228 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 229 """ 230 def capitalize(self): # real signature unknown; restored from __doc__ 231 """ 232 S.capitalize() -> unicode 233 234 Return a capitalized version of S, i.e. make the first character 235 have upper case and the rest lower case. 236 """ 237 return u"" 238 239 def center(self, width, fillchar=None): # real signature unknown; restored from __doc__ 240 """ 241 S.center(width[, fillchar]) -> unicode 242 243 Return S centered in a Unicode string of length width. Padding is 244 done using the specified fill character (default is a space) 245 """ 246 return u"" 247 248 def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 249 """ 250 S.count(sub[, start[, end]]) -> int 251 252 Return the number of non-overlapping occurrences of substring sub in 253 Unicode string S[start:end]. Optional arguments start and end are 254 interpreted as in slice notation. 255 """ 256 return 0 257 258 def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 259 """ 260 S.decode([encoding[,errors]]) -> string or unicode 261 262 Decodes S using the codec registered for encoding. encoding defaults 263 to the default encoding. errors may be given to set a different error 264 handling scheme. Default is 'strict' meaning that encoding errors raise 265 a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' 266 as well as any other name registered with codecs.register_error that is 267 able to handle UnicodeDecodeErrors. 268 """ 269 return "" 270 271 def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 272 """ 273 S.encode([encoding[,errors]]) -> string or unicode 274 275 Encodes S using the codec registered for encoding. encoding defaults 276 to the default encoding. errors may be given to set a different error 277 handling scheme. Default is 'strict' meaning that encoding errors raise 278 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 279 'xmlcharrefreplace' as well as any other name registered with 280 codecs.register_error that can handle UnicodeEncodeErrors. 281 """ 282 return "" 283 284 def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__ 285 """ 286 S.endswith(suffix[, start[, end]]) -> bool 287 288 Return True if S ends with the specified suffix, False otherwise. 289 With optional start, test S beginning at that position. 290 With optional end, stop comparing S at that position. 291 suffix can also be a tuple of strings to try. 292 """ 293 return False 294 295 def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__ 296 """ 297 S.expandtabs([tabsize]) -> unicode 298 299 Return a copy of S where all tab characters are expanded using spaces. 300 If tabsize is not given, a tab size of 8 characters is assumed. 301 """ 302 return u"" 303 304 def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 305 """ 306 S.find(sub [,start [,end]]) -> int 307 308 Return the lowest index in S where substring sub is found, 309 such that sub is contained within S[start:end]. Optional 310 arguments start and end are interpreted as in slice notation. 311 312 Return -1 on failure. 313 """ 314 return 0 315 316 def format(*args, **kwargs): # known special case of unicode.format 317 """ 318 S.format(*args, **kwargs) -> unicode 319 320 Return a formatted version of S, using substitutions from args and kwargs. 321 The substitutions are identified by braces ('{' and '}'). 322 """ 323 pass 324 325 def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 326 """ 327 S.index(sub [,start [,end]]) -> int 328 329 Like S.find() but raise ValueError when the substring is not found. 330 """ 331 return 0 332 333 def isalnum(self): # real signature unknown; restored from __doc__ 334 """ 335 S.isalnum() -> bool 336 337 Return True if all characters in S are alphanumeric 338 and there is at least one character in S, False otherwise. 339 """ 340 return False 341 342 def isalpha(self): # real signature unknown; restored from __doc__ 343 """ 344 S.isalpha() -> bool 345 346 Return True if all characters in S are alphabetic 347 and there is at least one character in S, False otherwise. 348 """ 349 return False 350 351 def isdecimal(self): # real signature unknown; restored from __doc__ 352 """ 353 S.isdecimal() -> bool 354 355 Return True if there are only decimal characters in S, 356 False otherwise. 357 """ 358 return False 359 360 def isdigit(self): # real signature unknown; restored from __doc__ 361 """ 362 S.isdigit() -> bool 363 364 Return True if all characters in S are digits 365 and there is at least one character in S, False otherwise. 366 """ 367 return False 368 369 def islower(self): # real signature unknown; restored from __doc__ 370 """ 371 S.islower() -> bool 372 373 Return True if all cased characters in S are lowercase and there is 374 at least one cased character in S, False otherwise. 375 """ 376 return False 377 378 def isnumeric(self): # real signature unknown; restored from __doc__ 379 """ 380 S.isnumeric() -> bool 381 382 Return True if there are only numeric characters in S, 383 False otherwise. 384 """ 385 return False 386 387 def isspace(self): # real signature unknown; restored from __doc__ 388 """ 389 S.isspace() -> bool 390 391 Return True if all characters in S are whitespace 392 and there is at least one character in S, False otherwise. 393 """ 394 return False 395 396 def istitle(self): # real signature unknown; restored from __doc__ 397 """ 398 S.istitle() -> bool 399 400 Return True if S is a titlecased string and there is at least one 401 character in S, i.e. upper- and titlecase characters may only 402 follow uncased characters and lowercase characters only cased ones. 403 Return False otherwise. 404 """ 405 return False 406 407 def isupper(self): # real signature unknown; restored from __doc__ 408 """ 409 S.isupper() -> bool 410 411 Return True if all cased characters in S are uppercase and there is 412 at least one cased character in S, False otherwise. 413 """ 414 return False 415 416 def join(self, iterable): # real signature unknown; restored from __doc__ 417 """ 418 S.join(iterable) -> unicode 419 420 Return a string which is the concatenation of the strings in the 421 iterable. The separator between elements is S. 422 """ 423 return u"" 424 425 def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 426 """ 427 S.ljust(width[, fillchar]) -> int 428 429 Return S left-justified in a Unicode string of length width. Padding is 430 done using the specified fill character (default is a space). 431 """ 432 return 0 433 434 def lower(self): # real signature unknown; restored from __doc__ 435 """ 436 S.lower() -> unicode 437 438 Return a copy of the string S converted to lowercase. 439 """ 440 return u"" 441 442 def lstrip(self, chars=None): # real signature unknown; restored from __doc__ 443 """ 444 S.lstrip([chars]) -> unicode 445 446 Return a copy of the string S with leading whitespace removed. 447 If chars is given and not None, remove characters in chars instead. 448 If chars is a str, it will be converted to unicode before stripping 449 """ 450 return u"" 451 452 def partition(self, sep): # real signature unknown; restored from __doc__ 453 """ 454 S.partition(sep) -> (head, sep, tail) 455 456 Search for the separator sep in S, and return the part before it, 457 the separator itself, and the part after it. If the separator is not 458 found, return S and two empty strings. 459 """ 460 pass 461 462 def replace(self, old, new, count=None): # real signature unknown; restored from __doc__ 463 """ 464 S.replace(old, new[, count]) -> unicode 465 466 Return a copy of S with all occurrences of substring 467 old replaced by new. If the optional argument count is 468 given, only the first count occurrences are replaced. 469 """ 470 return u"" 471 472 def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 473 """ 474 S.rfind(sub [,start [,end]]) -> int 475 476 Return the highest index in S where substring sub is found, 477 such that sub is contained within S[start:end]. Optional 478 arguments start and end are interpreted as in slice notation. 479 480 Return -1 on failure. 481 """ 482 return 0 483 484 def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 485 """ 486 S.rindex(sub [,start [,end]]) -> int 487 488 Like S.rfind() but raise ValueError when the substring is not found. 489 """ 490 return 0 491 492 def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 493 """ 494 S.rjust(width[, fillchar]) -> unicode 495 496 Return S right-justified in a Unicode string of length width. Padding is 497 done using the specified fill character (default is a space). 498 """ 499 return u"" 500 501 def rpartition(self, sep): # real signature unknown; restored from __doc__ 502 """ 503 S.rpartition(sep) -> (head, sep, tail) 504 505 Search for the separator sep in S, starting at the end of S, and return 506 the part before it, the separator itself, and the part after it. If the 507 separator is not found, return two empty strings and S. 508 """ 509 pass 510 511 def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 512 """ 513 S.rsplit([sep [,maxsplit]]) -> list of strings 514 515 Return a list of the words in S, using sep as the 516 delimiter string, starting at the end of the string and 517 working to the front. If maxsplit is given, at most maxsplit 518 splits are done. If sep is not specified, any whitespace string 519 is a separator. 520 """ 521 return [] 522 523 def rstrip(self, chars=None): # real signature unknown; restored from __doc__ 524 """ 525 S.rstrip([chars]) -> unicode 526 527 Return a copy of the string S with trailing whitespace removed. 528 If chars is given and not None, remove characters in chars instead. 529 If chars is a str, it will be converted to unicode before stripping 530 """ 531 return u"" 532 533 def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 534 """ 535 S.split([sep [,maxsplit]]) -> list of strings 536 537 Return a list of the words in S, using sep as the 538 delimiter string. If maxsplit is given, at most maxsplit 539 splits are done. If sep is not specified or is None, any 540 whitespace string is a separator and empty strings are 541 removed from the result. 542 """ 543 return [] 544 545 def splitlines(self, keepends=False): # real signature unknown; restored from __doc__ 546 """ 547 S.splitlines(keepends=False) -> list of strings 548 549 Return a list of the lines in S, breaking at line boundaries. 550 Line breaks are not included in the resulting list unless keepends 551 is given and true. 552 """ 553 return [] 554 555 def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__ 556 """ 557 S.startswith(prefix[, start[, end]]) -> bool 558 559 Return True if S starts with the specified prefix, False otherwise. 560 With optional start, test S beginning at that position. 561 With optional end, stop comparing S at that position. 562 prefix can also be a tuple of strings to try. 563 """ 564 return False 565 566 def strip(self, chars=None): # real signature unknown; restored from __doc__ 567 """ 568 S.strip([chars]) -> unicode 569 570 Return a copy of the string S with leading and trailing 571 whitespace removed. 572 If chars is given and not None, remove characters in chars instead. 573 If chars is a str, it will be converted to unicode before stripping 574 """ 575 return u"" 576 577 def swapcase(self): # real signature unknown; restored from __doc__ 578 """ 579 S.swapcase() -> unicode 580 581 Return a copy of S with uppercase characters converted to lowercase 582 and vice versa. 583 """ 584 return u"" 585 586 def title(self): # real signature unknown; restored from __doc__ 587 """ 588 S.title() -> unicode 589 590 Return a titlecased version of S, i.e. words start with title case 591 characters, all remaining cased characters have lower case. 592 """ 593 return u"" 594 595 def translate(self, table): # real signature unknown; restored from __doc__ 596 """ 597 S.translate(table) -> unicode 598 599 Return a copy of the string S, where all characters have been mapped 600 through the given translation table, which must be a mapping of 601 Unicode ordinals to Unicode ordinals, Unicode strings or None. 602 Unmapped characters are left untouched. Characters mapped to None 603 are deleted. 604 """ 605 return u"" 606 607 def upper(self): # real signature unknown; restored from __doc__ 608 """ 609 S.upper() -> unicode 610 611 Return a copy of S converted to uppercase. 612 """ 613 return u"" 614 615 def zfill(self, width): # real signature unknown; restored from __doc__ 616 """ 617 S.zfill(width) -> unicode 618 619 Pad a numeric string S with zeros on the left, to fill a field 620 of the specified width. The string S is never truncated. 621 """ 622 return u"" 623 624 def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown 625 pass 626 627 def _formatter_parser(self, *args, **kwargs): # real signature unknown 628 pass 629 630 def __add__(self, y): # real signature unknown; restored from __doc__ 631 """ x.__add__(y) <==> x+y """ 632 pass 633 634 def __contains__(self, y): # real signature unknown; restored from __doc__ 635 """ x.__contains__(y) <==> y in x """ 636 pass 637 638 def __eq__(self, y): # real signature unknown; restored from __doc__ 639 """ x.__eq__(y) <==> x==y """ 640 pass 641 642 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 643 """ 644 S.__format__(format_spec) -> unicode 645 646 Return a formatted version of S as described by format_spec. 647 """ 648 return u"" 649 650 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 651 """ x.__getattribute__('name') <==> x.name """ 652 pass 653 654 def __getitem__(self, y): # real signature unknown; restored from __doc__ 655 """ x.__getitem__(y) <==> x[y] """ 656 pass 657 658 def __getnewargs__(self, *args, **kwargs): # real signature unknown 659 pass 660 661 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 662 """ 663 x.__getslice__(i, j) <==> x[i:j] 664 665 Use of negative indices is not supported. 666 """ 667 pass 668 669 def __ge__(self, y): # real signature unknown; restored from __doc__ 670 """ x.__ge__(y) <==> x>=y """ 671 pass 672 673 def __gt__(self, y): # real signature unknown; restored from __doc__ 674 """ x.__gt__(y) <==> x>y """ 675 pass 676 677 def __hash__(self): # real signature unknown; restored from __doc__ 678 """ x.__hash__() <==> hash(x) """ 679 pass 680 681 def __init__(self, string=u'', encoding=None, errors='strict'): # known special case of unicode.__init__ 682 """ 683 unicode(object='') -> unicode object 684 unicode(string[, encoding[, errors]]) -> unicode object 685 686 Create a new Unicode object from the given encoded string. 687 encoding defaults to the current default string encoding. 688 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 689 # (copied from class doc) 690 """ 691 pass 692 693 def __len__(self): # real signature unknown; restored from __doc__ 694 """ x.__len__() <==> len(x) """ 695 pass 696 697 def __le__(self, y): # real signature unknown; restored from __doc__ 698 """ x.__le__(y) <==> x<=y """ 699 pass 700 701 def __lt__(self, y): # real signature unknown; restored from __doc__ 702 """ x.__lt__(y) <==> x<y """ 703 pass 704 705 def __mod__(self, y): # real signature unknown; restored from __doc__ 706 """ x.__mod__(y) <==> x%y """ 707 pass 708 709 def __mul__(self, n): # real signature unknown; restored from __doc__ 710 """ x.__mul__(n) <==> x*n """ 711 pass 712 713 @staticmethod # known case of __new__ 714 def __new__(S, *more): # real signature unknown; restored from __doc__ 715 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 716 pass 717 718 def __ne__(self, y): # real signature unknown; restored from __doc__ 719 """ x.__ne__(y) <==> x!=y """ 720 pass 721 722 def __repr__(self): # real signature unknown; restored from __doc__ 723 """ x.__repr__() <==> repr(x) """ 724 pass 725 726 def __rmod__(self, y): # real signature unknown; restored from __doc__ 727 """ x.__rmod__(y) <==> y%x """ 728 pass 729 730 def __rmul__(self, n): # real signature unknown; restored from __doc__ 731 """ x.__rmul__(n) <==> n*x """ 732 pass 733 734 def __sizeof__(self): # real signature unknown; restored from __doc__ 735 """ S.__sizeof__() -> size of S in memory, in bytes """ 736 pass 737 738 def __str__(self): # real signature unknown; restored from __doc__ 739 """ x.__str__() <==> str(x) """ 740 pass 741 742 743 class xrange(object): 744 """ 745 xrange(stop) -> xrange object 746 xrange(start, stop[, step]) -> xrange object 747 748 Like range(), but instead of returning a list, returns an object that 749 generates the numbers in the range on demand. For looping, this is 750 slightly faster than range() and more memory efficient. 751 """ 752 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 753 """ x.__getattribute__('name') <==> x.name """ 754 pass 755 756 def __getitem__(self, y): # real signature unknown; restored from __doc__ 757 """ x.__getitem__(y) <==> x[y] """ 758 pass 759 760 def __init__(self, stop): # real signature unknown; restored from __doc__ 761 pass 762 763 def __iter__(self): # real signature unknown; restored from __doc__ 764 """ x.__iter__() <==> iter(x) """ 765 pass 766 767 def __len__(self): # real signature unknown; restored from __doc__ 768 """ x.__len__() <==> len(x) """ 769 pass 770 771 @staticmethod # known case of __new__ 772 def __new__(S, *more): # real signature unknown; restored from __doc__ 773 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 774 pass 775 776 def __reduce__(self, *args, **kwargs): # real signature unknown 777 pass 778 779 def __repr__(self): # real signature unknown; restored from __doc__ 780 """ x.__repr__() <==> repr(x) """ 781 pass 782 783 def __reversed__(self, *args, **kwargs): # real signature unknown 784 """ Returns a reverse iterator. """ 785 pass 786 787 788 # variables with complex values 789 790 Ellipsis = None # (!) real value is '' 791 792 NotImplemented = None # (!) real value is ''
基本常用方法如下
1 >>> a=(1,2,3,4,5) 2 >>> type(a) 3 <type 'tuple'> 4 >>> a.count(1) 5 1 6 >>> a.index(5) 7 4 8 >>> a.index(6) 9 Traceback (most recent call last): 10 File "<stdin>", line 1, in <module> 11 ValueError: tuple.index(x): x not in tuple
6,字典
下面这种字典
s = {'Dicky':18,1:3,'zzz':'kkk'}
方法如下
1 class dict(object): 2 """ 3 dict() -> new empty dictionary 4 dict(mapping) -> new dictionary initialized from a mapping object's 5 (key, value) pairs 6 dict(iterable) -> new dictionary initialized as if via: 7 d = {} 8 for k, v in iterable: 9 d[k] = v 10 dict(**kwargs) -> new dictionary initialized with the name=value pairs 11 in the keyword argument list. For example: dict(one=1, two=2) 12 """ 13 def clear(self): # real signature unknown; restored from __doc__ 14 """ D.clear() -> None. Remove all items from D. """ 15 pass 16 17 def copy(self): # real signature unknown; restored from __doc__ 18 """ D.copy() -> a shallow copy of D """ 19 pass 20 21 @staticmethod # known case 22 def fromkeys(S, v=None): # real signature unknown; restored from __doc__ 23 """ 24 dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v. 25 v defaults to None. 26 """ 27 pass 28 29 def get(self, k, d=None): # real signature unknown; restored from __doc__ 30 """ D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. """ 31 pass 32 33 def has_key(self, k): # real signature unknown; restored from __doc__ 34 """ D.has_key(k) -> True if D has a key k, else False """ 35 return False 36 37 def items(self): # real signature unknown; restored from __doc__ 38 """ D.items() -> list of D's (key, value) pairs, as 2-tuples """ 39 return [] 40 41 def iteritems(self): # real signature unknown; restored from __doc__ 42 """ D.iteritems() -> an iterator over the (key, value) items of D """ 43 pass 44 45 def iterkeys(self): # real signature unknown; restored from __doc__ 46 """ D.iterkeys() -> an iterator over the keys of D """ 47 pass 48 49 def itervalues(self): # real signature unknown; restored from __doc__ 50 """ D.itervalues() -> an iterator over the values of D """ 51 pass 52 53 def keys(self): # real signature unknown; restored from __doc__ 54 """ D.keys() -> list of D's keys """ 55 return [] 56 57 def pop(self, k, d=None): # real signature unknown; restored from __doc__ 58 """ 59 D.pop(k[,d]) -> v, remove specified key and return the corresponding value. 60 If key is not found, d is returned if given, otherwise KeyError is raised 61 """ 62 pass 63 64 def popitem(self): # real signature unknown; restored from __doc__ 65 """ 66 D.popitem() -> (k, v), remove and return some (key, value) pair as a 67 2-tuple; but raise KeyError if D is empty. 68 """ 69 pass 70 71 def setdefault(self, k, d=None): # real signature unknown; restored from __doc__ 72 """ D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D """ 73 pass 74 75 def update(self, E=None, **F): # known special case of dict.update 76 """ 77 D.update([E, ]**F) -> None. Update D from dict/iterable E and F. 78 If E present and has a .keys() method, does: for k in E: D[k] = E[k] 79 If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v 80 In either case, this is followed by: for k in F: D[k] = F[k] 81 """ 82 pass 83 84 def values(self): # real signature unknown; restored from __doc__ 85 """ D.values() -> list of D's values """ 86 return [] 87 88 def viewitems(self): # real signature unknown; restored from __doc__ 89 """ D.viewitems() -> a set-like object providing a view on D's items """ 90 pass 91 92 def viewkeys(self): # real signature unknown; restored from __doc__ 93 """ D.viewkeys() -> a set-like object providing a view on D's keys """ 94 pass 95 96 def viewvalues(self): # real signature unknown; restored from __doc__ 97 """ D.viewvalues() -> an object providing a view on D's values """ 98 pass 99 100 def __cmp__(self, y): # real signature unknown; restored from __doc__ 101 """ x.__cmp__(y) <==> cmp(x,y) """ 102 pass 103 104 def __contains__(self, k): # real signature unknown; restored from __doc__ 105 """ D.__contains__(k) -> True if D has a key k, else False """ 106 return False 107 108 def __delitem__(self, y): # real signature unknown; restored from __doc__ 109 """ x.__delitem__(y) <==> del x[y] """ 110 pass 111 112 def __eq__(self, y): # real signature unknown; restored from __doc__ 113 """ x.__eq__(y) <==> x==y """ 114 pass 115 116 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 117 """ x.__getattribute__('name') <==> x.name """ 118 pass 119 120 def __getitem__(self, y): # real signature unknown; restored from __doc__ 121 """ x.__getitem__(y) <==> x[y] """ 122 pass 123 124 def __ge__(self, y): # real signature unknown; restored from __doc__ 125 """ x.__ge__(y) <==> x>=y """ 126 pass 127 128 def __gt__(self, y): # real signature unknown; restored from __doc__ 129 """ x.__gt__(y) <==> x>y """ 130 pass 131 132 def __init__(self, seq=None, **kwargs): # known special case of dict.__init__ 133 """ 134 dict() -> new empty dictionary 135 dict(mapping) -> new dictionary initialized from a mapping object's 136 (key, value) pairs 137 dict(iterable) -> new dictionary initialized as if via: 138 d = {} 139 for k, v in iterable: 140 d[k] = v 141 dict(**kwargs) -> new dictionary initialized with the name=value pairs 142 in the keyword argument list. For example: dict(one=1, two=2) 143 # (copied from class doc) 144 """ 145 pass 146 147 def __iter__(self): # real signature unknown; restored from __doc__ 148 """ x.__iter__() <==> iter(x) """ 149 pass 150 151 def __len__(self): # real signature unknown; restored from __doc__ 152 """ x.__len__() <==> len(x) """ 153 pass 154 155 def __le__(self, y): # real signature unknown; restored from __doc__ 156 """ x.__le__(y) <==> x<=y """ 157 pass 158 159 def __lt__(self, y): # real signature unknown; restored from __doc__ 160 """ x.__lt__(y) <==> x<y """ 161 pass 162 163 @staticmethod # known case of __new__ 164 def __new__(S, *more): # real signature unknown; restored from __doc__ 165 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 166 pass 167 168 def __ne__(self, y): # real signature unknown; restored from __doc__ 169 """ x.__ne__(y) <==> x!=y """ 170 pass 171 172 def __repr__(self): # real signature unknown; restored from __doc__ 173 """ x.__repr__() <==> repr(x) """ 174 pass 175 176 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 177 """ x.__setitem__(i, y) <==> x[i]=y """ 178 pass 179 180 def __sizeof__(self): # real signature unknown; restored from __doc__ 181 """ D.__sizeof__() -> size of D in memory, in bytes """ 182 pass 183 184 __hash__ = None 185 186 187 class enumerate(object): 188 """ 189 enumerate(iterable[, start]) -> iterator for index, value of iterable 190 191 Return an enumerate object. iterable must be another object that supports 192 iteration. The enumerate object yields pairs containing a count (from 193 start, which defaults to zero) and a value yielded by the iterable argument. 194 enumerate is useful for obtaining an indexed list: 195 (0, seq[0]), (1, seq[1]), (2, seq[2]), ... 196 """ 197 def next(self): # real signature unknown; restored from __doc__ 198 """ x.next() -> the next value, or raise StopIteration """ 199 pass 200 201 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 202 """ x.__getattribute__('name') <==> x.name """ 203 pass 204 205 def __init__(self, iterable, start=0): # known special case of enumerate.__init__ 206 """ x.__init__(...) initializes x; see help(type(x)) for signature """ 207 pass 208 209 def __iter__(self): # real signature unknown; restored from __doc__ 210 """ x.__iter__() <==> iter(x) """ 211 pass 212 213 @staticmethod # known case of __new__ 214 def __new__(S, *more): # real signature unknown; restored from __doc__ 215 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 216 pass 217 218 219 class file(object): 220 """ 221 file(name[, mode[, buffering]]) -> file object 222 223 Open a file. The mode can be 'r', 'w' or 'a' for reading (default), 224 writing or appending. The file will be created if it doesn't exist 225 when opened for writing or appending; it will be truncated when 226 opened for writing. Add a 'b' to the mode for binary files. 227 Add a '+' to the mode to allow simultaneous reading and writing. 228 If the buffering argument is given, 0 means unbuffered, 1 means line 229 buffered, and larger numbers specify the buffer size. The preferred way 230 to open a file is with the builtin open() function. 231 Add a 'U' to mode to open the file for input with universal newline 232 support. Any line ending in the input file will be seen as a '\n' 233 in Python. Also, a file so opened gains the attribute 'newlines'; 234 the value for this attribute is one of None (no newline read yet), 235 '\r', '\n', '\r\n' or a tuple containing all the newline types seen. 236 237 'U' cannot be combined with 'w' or '+' mode. 238 """ 239 def close(self): # real signature unknown; restored from __doc__ 240 """ 241 close() -> None or (perhaps) an integer. Close the file. 242 243 Sets data attribute .closed to True. A closed file cannot be used for 244 further I/O operations. close() may be called more than once without 245 error. Some kinds of file objects (for example, opened by popen()) 246 may return an exit status upon closing. 247 """ 248 pass 249 250 def fileno(self): # real signature unknown; restored from __doc__ 251 """ 252 fileno() -> integer "file descriptor". 253 254 This is needed for lower-level file interfaces, such os.read(). 255 """ 256 return 0 257 258 def flush(self): # real signature unknown; restored from __doc__ 259 """ flush() -> None. Flush the internal I/O buffer. """ 260 pass 261 262 def isatty(self): # real signature unknown; restored from __doc__ 263 """ isatty() -> true or false. True if the file is connected to a tty device. """ 264 return False 265 266 def next(self): # real signature unknown; restored from __doc__ 267 """ x.next() -> the next value, or raise StopIteration """ 268 pass 269 270 def read(self, size=None): # real signature unknown; restored from __doc__ 271 """ 272 read([size]) -> read at most size bytes, returned as a string. 273 274 If the size argument is negative or omitted, read until EOF is reached. 275 Notice that when in non-blocking mode, less data than what was requested 276 may be returned, even if no size parameter was given. 277 """ 278 pass 279 280 def readinto(self): # real signature unknown; restored from __doc__ 281 """ readinto() -> Undocumented. Don't use this; it may go away. """ 282 pass 283 284 def readline(self, size=None): # real signature unknown; restored from __doc__ 285 """ 286 readline([size]) -> next line from the file, as a string. 287 288 Retain newline. A non-negative size argument limits the maximum 289 number of bytes to return (an incomplete line may be returned then). 290 Return an empty string at EOF. 291 """ 292 pass 293 294 def readlines(self, size=None): # real signature unknown; restored from __doc__ 295 """ 296 readlines([size]) -> list of strings, each a line from the file. 297 298 Call readline() repeatedly and return a list of the lines so read. 299 The optional size argument, if given, is an approximate bound on the 300 total number of bytes in the lines returned. 301 """ 302 return [] 303 304 def seek(self, offset, whence=None): # real signature unknown; restored from __doc__ 305 """ 306 seek(offset[, whence]) -> None. Move to new file position. 307 308 Argument offset is a byte count. Optional argument whence defaults to 309 0 (offset from start of file, offset should be >= 0); other values are 1 310 (move relative to current position, positive or negative), and 2 (move 311 relative to end of file, usually negative, although many platforms allow 312 seeking beyond the end of a file). If the file is opened in text mode, 313 only offsets returned by tell() are legal. Use of other offsets causes 314 undefined behavior. 315 Note that not all file objects are seekable. 316 """ 317 pass 318 319 def tell(self): # real signature unknown; restored from __doc__ 320 """ tell() -> current file position, an integer (may be a long integer). """ 321 pass 322 323 def truncate(self, size=None): # real signature unknown; restored from __doc__ 324 """ 325 truncate([size]) -> None. Truncate the file to at most size bytes. 326 327 Size defaults to the current file position, as returned by tell(). 328 """ 329 pass 330 331 def write(self, p_str): # real signature unknown; restored from __doc__ 332 """ 333 write(str) -> None. Write string str to file. 334 335 Note that due to buffering, flush() or close() may be needed before 336 the file on disk reflects the data written. 337 """ 338 pass 339 340 def writelines(self, sequence_of_strings): # real signature unknown; restored from __doc__ 341 """ 342 writelines(sequence_of_strings) -> None. Write the strings to the file. 343 344 Note that newlines are not added. The sequence can be any iterable object 345 producing strings. This is equivalent to calling write() for each string. 346 """ 347 pass 348 349 def xreadlines(self): # real signature unknown; restored from __doc__ 350 """ 351 xreadlines() -> returns self. 352 353 For backward compatibility. File objects now include the performance 354 optimizations previously implemented in the xreadlines module. 355 """ 356 pass 357 358 def __delattr__(self, name): # real signature unknown; restored from __doc__ 359 """ x.__delattr__('name') <==> del x.name """ 360 pass 361 362 def __enter__(self): # real signature unknown; restored from __doc__ 363 """ __enter__() -> self. """ 364 return self 365 366 def __exit__(self, *excinfo): # real signature unknown; restored from __doc__ 367 """ __exit__(*excinfo) -> None. Closes the file. """ 368 pass 369 370 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 371 """ x.__getattribute__('name') <==> x.name """ 372 pass 373 374 def __init__(self, name, mode=None, buffering=None): # real signature unknown; restored from __doc__ 375 pass 376 377 def __iter__(self): # real signature unknown; restored from __doc__ 378 """ x.__iter__() <==> iter(x) """ 379 pass 380 381 @staticmethod # known case of __new__ 382 def __new__(S, *more): # real signature unknown; restored from __doc__ 383 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 384 pass 385 386 def __repr__(self): # real signature unknown; restored from __doc__ 387 """ x.__repr__() <==> repr(x) """ 388 pass 389 390 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 391 """ x.__setattr__('name', value) <==> x.name = value """ 392 pass 393 394 closed = property(lambda self: True) 395 """True if the file is closed 396 397 :type: bool 398 """ 399 400 encoding = property(lambda self: '') 401 """file encoding 402 403 :type: string 404 """ 405 406 errors = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 407 """Unicode error handler""" 408 409 mode = property(lambda self: '') 410 """file mode ('r', 'U', 'w', 'a', possibly with 'b' or '+' added) 411 412 :type: string 413 """ 414 415 name = property(lambda self: '') 416 """file name 417 418 :type: string 419 """ 420 421 newlines = property(lambda self: '') 422 """end-of-line convention used in this file 423 424 :type: string 425 """ 426 427 softspace = property(lambda self: True) 428 """flag indicating that a space needs to be printed; used by print 429 430 :type: bool 431 """ 432 433 434 435 class float(object): 436 """ 437 float(x) -> floating point number 438 439 Convert a string or number to a floating point number, if possible. 440 """ 441 def as_integer_ratio(self): # real signature unknown; restored from __doc__ 442 """ 443 float.as_integer_ratio() -> (int, int) 444 445 Return a pair of integers, whose ratio is exactly equal to the original 446 float and with a positive denominator. 447 Raise OverflowError on infinities and a ValueError on NaNs. 448 449 >>> (10.0).as_integer_ratio() 450 (10, 1) 451 >>> (0.0).as_integer_ratio() 452 (0, 1) 453 >>> (-.25).as_integer_ratio() 454 (-1, 4) 455 """ 456 pass 457 458 def conjugate(self, *args, **kwargs): # real signature unknown 459 """ Return self, the complex conjugate of any float. """ 460 pass 461 462 def fromhex(self, string): # real signature unknown; restored from __doc__ 463 """ 464 float.fromhex(string) -> float 465 466 Create a floating-point number from a hexadecimal string. 467 >>> float.fromhex('0x1.ffffp10') 468 2047.984375 469 >>> float.fromhex('-0x1p-1074') 470 -4.9406564584124654e-324 471 """ 472 return 0.0 473 474 def hex(self): # real signature unknown; restored from __doc__ 475 """ 476 float.hex() -> string 477 478 Return a hexadecimal representation of a floating-point number. 479 >>> (-0.1).hex() 480 '-0x1.999999999999ap-4' 481 >>> 3.14159.hex() 482 '0x1.921f9f01b866ep+1' 483 """ 484 return "" 485 486 def is_integer(self, *args, **kwargs): # real signature unknown 487 """ Return True if the float is an integer. """ 488 pass 489 490 def __abs__(self): # real signature unknown; restored from __doc__ 491 """ x.__abs__() <==> abs(x) """ 492 pass 493 494 def __add__(self, y): # real signature unknown; restored from __doc__ 495 """ x.__add__(y) <==> x+y """ 496 pass 497 498 def __coerce__(self, y): # real signature unknown; restored from __doc__ 499 """ x.__coerce__(y) <==> coerce(x, y) """ 500 pass 501 502 def __divmod__(self, y): # real signature unknown; restored from __doc__ 503 """ x.__divmod__(y) <==> divmod(x, y) """ 504 pass 505 506 def __div__(self, y): # real signature unknown; restored from __doc__ 507 """ x.__div__(y) <==> x/y """ 508 pass 509 510 def __eq__(self, y): # real signature unknown; restored from __doc__ 511 """ x.__eq__(y) <==> x==y """ 512 pass 513 514 def __float__(self): # real signature unknown; restored from __doc__ 515 """ x.__float__() <==> float(x) """ 516 pass 517 518 def __floordiv__(self, y): # real signature unknown; restored from __doc__ 519 """ x.__floordiv__(y) <==> x//y """ 520 pass 521 522 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 523 """ 524 float.__format__(format_spec) -> string 525 526 Formats the float according to format_spec. 527 """ 528 return "" 529 530 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 531 """ x.__getattribute__('name') <==> x.name """ 532 pass 533 534 def __getformat__(self, typestr): # real signature unknown; restored from __doc__ 535 """ 536 float.__getformat__(typestr) -> string 537 538 You probably don't want to use this function. It exists mainly to be 539 used in Python's test suite. 540 541 typestr must be 'double' or 'float'. This function returns whichever of 542 'unknown', 'IEEE, big-endian' or 'IEEE, little-endian' best describes the 543 format of floating point numbers used by the C type named by typestr. 544 """ 545 return "" 546 547 def __getnewargs__(self, *args, **kwargs): # real signature unknown 548 pass 549 550 def __ge__(self, y): # real signature unknown; restored from __doc__ 551 """ x.__ge__(y) <==> x>=y """ 552 pass 553 554 def __gt__(self, y): # real signature unknown; restored from __doc__ 555 """ x.__gt__(y) <==> x>y """ 556 pass 557 558 def __hash__(self): # real signature unknown; restored from __doc__ 559 """ x.__hash__() <==> hash(x) """ 560 pass 561 562 def __init__(self, x): # real signature unknown; restored from __doc__ 563 pass 564 565 def __int__(self): # real signature unknown; restored from __doc__ 566 """ x.__int__() <==> int(x) """ 567 pass 568 569 def __le__(self, y): # real signature unknown; restored from __doc__ 570 """ x.__le__(y) <==> x<=y """ 571 pass 572 573 def __long__(self): # real signature unknown; restored from __doc__ 574 """ x.__long__() <==> long(x) """ 575 pass 576 577 def __lt__(self, y): # real signature unknown; restored from __doc__ 578 """ x.__lt__(y) <==> x<y """ 579 pass 580 581 def __mod__(self, y): # real signature unknown; restored from __doc__ 582 """ x.__mod__(y) <==> x%y """ 583 pass 584 585 def __mul__(self, y): # real signature unknown; restored from __doc__ 586 """ x.__mul__(y) <==> x*y """ 587 pass 588 589 def __neg__(self): # real signature unknown; restored from __doc__ 590 """ x.__neg__() <==> -x """ 591 pass 592 593 @staticmethod # known case of __new__ 594 def __new__(S, *more): # real signature unknown; restored from __doc__ 595 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 596 pass 597 598 def __ne__(self, y): # real signature unknown; restored from __doc__ 599 """ x.__ne__(y) <==> x!=y """ 600 pass 601 602 def __nonzero__(self): # real signature unknown; restored from __doc__ 603 """ x.__nonzero__() <==> x != 0 """ 604 pass 605 606 def __pos__(self): # real signature unknown; restored from __doc__ 607 """ x.__pos__() <==> +x """ 608 pass 609 610 def __pow__(self, y, z=None): # real signature unknown; restored from __doc__ 611 """ x.__pow__(y[, z]) <==> pow(x, y[, z]) """ 612 pass 613 614 def __radd__(self, y): # real signature unknown; restored from __doc__ 615 """ x.__radd__(y) <==> y+x """ 616 pass 617 618 def __rdivmod__(self, y): # real signature unknown; restored from __doc__ 619 """ x.__rdivmod__(y) <==> divmod(y, x) """ 620 pass 621 622 def __rdiv__(self, y): # real signature unknown; restored from __doc__ 623 """ x.__rdiv__(y) <==> y/x """ 624 pass 625 626 def __repr__(self): # real signature unknown; restored from __doc__ 627 """ x.__repr__() <==> repr(x) """ 628 pass 629 630 def __rfloordiv__(self, y): # real signature unknown; restored from __doc__ 631 """ x.__rfloordiv__(y) <==> y//x """ 632 pass 633 634 def __rmod__(self, y): # real signature unknown; restored from __doc__ 635 """ x.__rmod__(y) <==> y%x """ 636 pass 637 638 def __rmul__(self, y): # real signature unknown; restored from __doc__ 639 """ x.__rmul__(y) <==> y*x """ 640 pass 641 642 def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__ 643 """ y.__rpow__(x[, z]) <==> pow(x, y[, z]) """ 644 pass 645 646 def __rsub__(self, y): # real signature unknown; restored from __doc__ 647 """ x.__rsub__(y) <==> y-x """ 648 pass 649 650 def __rtruediv__(self, y): # real signature unknown; restored from __doc__ 651 """ x.__rtruediv__(y) <==> y/x """ 652 pass 653 654 def __setformat__(self, typestr, fmt): # real signature unknown; restored from __doc__ 655 """ 656 float.__setformat__(typestr, fmt) -> None 657 658 You probably don't want to use this function. It exists mainly to be 659 used in Python's test suite. 660 661 typestr must be 'double' or 'float'. fmt must be one of 'unknown', 662 'IEEE, big-endian' or 'IEEE, little-endian', and in addition can only be 663 one of the latter two if it appears to match the underlying C reality. 664 665 Override the automatic determination of C-level floating point type. 666 This affects how floats are converted to and from binary strings. 667 """ 668 pass 669 670 def __str__(self): # real signature unknown; restored from __doc__ 671 """ x.__str__() <==> str(x) """ 672 pass 673 674 def __sub__(self, y): # real signature unknown; restored from __doc__ 675 """ x.__sub__(y) <==> x-y """ 676 pass 677 678 def __truediv__(self, y): # real signature unknown; restored from __doc__ 679 """ x.__truediv__(y) <==> x/y """ 680 pass 681 682 def __trunc__(self, *args, **kwargs): # real signature unknown 683 """ Return the Integral closest to x between 0 and x. """ 684 pass 685 686 imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 687 """the imaginary part of a complex number""" 688 689 real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 690 """the real part of a complex number""" 691 692 693 694 class frozenset(object): 695 """ 696 frozenset() -> empty frozenset object 697 frozenset(iterable) -> frozenset object 698 699 Build an immutable unordered collection of unique elements. 700 """ 701 def copy(self, *args, **kwargs): # real signature unknown 702 """ Return a shallow copy of a set. """ 703 pass 704 705 def difference(self, *args, **kwargs): # real signature unknown 706 """ 707 Return the difference of two or more sets as a new set. 708 709 (i.e. all elements that are in this set but not the others.) 710 """ 711 pass 712 713 def intersection(self, *args, **kwargs): # real signature unknown 714 """ 715 Return the intersection of two or more sets as a new set. 716 717 (i.e. elements that are common to all of the sets.) 718 """ 719 pass 720 721 def isdisjoint(self, *args, **kwargs): # real signature unknown 722 """ Return True if two sets have a null intersection. """ 723 pass 724 725 def issubset(self, *args, **kwargs): # real signature unknown 726 """ Report whether another set contains this set. """ 727 pass 728 729 def issuperset(self, *args, **kwargs): # real signature unknown 730 """ Report whether this set contains another set. """ 731 pass 732 733 def symmetric_difference(self, *args, **kwargs): # real signature unknown 734 """ 735 Return the symmetric difference of two sets as a new set. 736 737 (i.e. all elements that are in exactly one of the sets.) 738 """ 739 pass 740 741 def union(self, *args, **kwargs): # real signature unknown 742 """ 743 Return the union of sets as a new set. 744 745 (i.e. all elements that are in either set.) 746 """ 747 pass 748 749 def __and__(self, y): # real signature unknown; restored from __doc__ 750 """ x.__and__(y) <==> x&y """ 751 pass 752 753 def __cmp__(self, y): # real signature unknown; restored from __doc__ 754 """ x.__cmp__(y) <==> cmp(x,y) """ 755 pass 756 757 def __contains__(self, y): # real signature unknown; restored from __doc__ 758 """ x.__contains__(y) <==> y in x. """ 759 pass 760 761 def __eq__(self, y): # real signature unknown; restored from __doc__ 762 """ x.__eq__(y) <==> x==y """ 763 pass 764 765 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 766 """ x.__getattribute__('name') <==> x.name """ 767 pass 768 769 def __ge__(self, y): # real signature unknown; restored from __doc__ 770 """ x.__ge__(y) <==> x>=y """ 771 pass 772 773 def __gt__(self, y): # real signature unknown; restored from __doc__ 774 """ x.__gt__(y) <==> x>y """ 775 pass 776 777 def __hash__(self): # real signature unknown; restored from __doc__ 778 """ x.__hash__() <==> hash(x) """ 779 pass 780 781 def __init__(self, seq=()): # known special case of frozenset.__init__ 782 """ x.__init__(...) initializes x; see help(type(x)) for signature """ 783 pass 784 785 def __iter__(self): # real signature unknown; restored from __doc__ 786 """ x.__iter__() <==> iter(x) """ 787 pass 788 789 def __len__(self): # real signature unknown; restored from __doc__ 790 """ x.__len__() <==> len(x) """ 791 pass 792 793 def __le__(self, y): # real signature unknown; restored from __doc__ 794 """ x.__le__(y) <==> x<=y """ 795 pass 796 797 def __lt__(self, y): # real signature unknown; restored from __doc__ 798 """ x.__lt__(y) <==> x<y """ 799 pass 800 801 @staticmethod # known case of __new__ 802 def __new__(S, *more): # real signature unknown; restored from __doc__ 803 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 804 pass 805 806 def __ne__(self, y): # real signature unknown; restored from __doc__ 807 """ x.__ne__(y) <==> x!=y """ 808 pass 809 810 def __or__(self, y): # real signature unknown; restored from __doc__ 811 """ x.__or__(y) <==> x|y """ 812 pass 813 814 def __rand__(self, y): # real signature unknown; restored from __doc__ 815 """ x.__rand__(y) <==> y&x """ 816 pass 817 818 def __reduce__(self, *args, **kwargs): # real signature unknown 819 """ Return state information for pickling. """ 820 pass 821 822 def __repr__(self): # real signature unknown; restored from __doc__ 823 """ x.__repr__() <==> repr(x) """ 824 pass 825 826 def __ror__(self, y): # real signature unknown; restored from __doc__ 827 """ x.__ror__(y) <==> y|x """ 828 pass 829 830 def __rsub__(self, y): # real signature unknown; restored from __doc__ 831 """ x.__rsub__(y) <==> y-x """ 832 pass 833 834 def __rxor__(self, y): # real signature unknown; restored from __doc__ 835 """ x.__rxor__(y) <==> y^x """ 836 pass 837 838 def __sizeof__(self): # real signature unknown; restored from __doc__ 839 """ S.__sizeof__() -> size of S in memory, in bytes """ 840 pass 841 842 def __sub__(self, y): # real signature unknown; restored from __doc__ 843 """ x.__sub__(y) <==> x-y """ 844 pass 845 846 def __xor__(self, y): # real signature unknown; restored from __doc__ 847 """ x.__xor__(y) <==> x^y """ 848 pass 849 850 851 class list(object): 852 """ 853 list() -> new empty list 854 list(iterable) -> new list initialized from iterable's items 855 """ 856 def append(self, p_object): # real signature unknown; restored from __doc__ 857 """ L.append(object) -- append object to end """ 858 pass 859 860 def count(self, value): # real signature unknown; restored from __doc__ 861 """ L.count(value) -> integer -- return number of occurrences of value """ 862 return 0 863 864 def extend(self, iterable): # real signature unknown; restored from __doc__ 865 """ L.extend(iterable) -- extend list by appending elements from the iterable """ 866 pass 867 868 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 869 """ 870 L.index(value, [start, [stop]]) -> integer -- return first index of value. 871 Raises ValueError if the value is not present. 872 """ 873 return 0 874 875 def insert(self, index, p_object): # real signature unknown; restored from __doc__ 876 """ L.insert(index, object) -- insert object before index """ 877 pass 878 879 def pop(self, index=None): # real signature unknown; restored from __doc__ 880 """ 881 L.pop([index]) -> item -- remove and return item at index (default last). 882 Raises IndexError if list is empty or index is out of range. 883 """ 884 pass 885 886 def remove(self, value): # real signature unknown; restored from __doc__ 887 """ 888 L.remove(value) -- remove first occurrence of value. 889 Raises ValueError if the value is not present. 890 """ 891 pass 892 893 def reverse(self): # real signature unknown; restored from __doc__ 894 """ L.reverse() -- reverse *IN PLACE* """ 895 pass 896 897 def sort(self, cmp=None, key=None, reverse=False): # real signature unknown; restored from __doc__ 898 """ 899 L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; 900 cmp(x, y) -> -1, 0, 1 901 """ 902 pass 903 904 def __add__(self, y): # real signature unknown; restored from __doc__ 905 """ x.__add__(y) <==> x+y """ 906 pass 907 908 def __contains__(self, y): # real signature unknown; restored from __doc__ 909 """ x.__contains__(y) <==> y in x """ 910 pass 911 912 def __delitem__(self, y): # real signature unknown; restored from __doc__ 913 """ x.__delitem__(y) <==> del x[y] """ 914 pass 915 916 def __delslice__(self, i, j): # real signature unknown; restored from __doc__ 917 """ 918 x.__delslice__(i, j) <==> del x[i:j] 919 920 Use of negative indices is not supported. 921 """ 922 pass 923 924 def __eq__(self, y): # real signature unknown; restored from __doc__ 925 """ x.__eq__(y) <==> x==y """ 926 pass 927 928 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 929 """ x.__getattribute__('name') <==> x.name """ 930 pass 931 932 def __getitem__(self, y): # real signature unknown; restored from __doc__ 933 """ x.__getitem__(y) <==> x[y] """ 934 pass 935 936 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 937 """ 938 x.__getslice__(i, j) <==> x[i:j] 939 940 Use of negative indices is not supported. 941 """ 942 pass 943 944 def __ge__(self, y): # real signature unknown; restored from __doc__ 945 """ x.__ge__(y) <==> x>=y """ 946 pass 947 948 def __gt__(self, y): # real signature unknown; restored from __doc__ 949 """ x.__gt__(y) <==> x>y """ 950 pass 951 952 def __iadd__(self, y): # real signature unknown; restored from __doc__ 953 """ x.__iadd__(y) <==> x+=y """ 954 pass 955 956 def __imul__(self, y): # real signature unknown; restored from __doc__ 957 """ x.__imul__(y) <==> x*=y """ 958 pass 959 960 def __init__(self, seq=()): # known special case of list.__init__ 961 """ 962 list() -> new empty list 963 list(iterable) -> new list initialized from iterable's items 964 # (copied from class doc) 965 """ 966 pass 967 968 def __iter__(self): # real signature unknown; restored from __doc__ 969 """ x.__iter__() <==> iter(x) """ 970 pass 971 972 def __len__(self): # real signature unknown; restored from __doc__ 973 """ x.__len__() <==> len(x) """ 974 pass 975 976 def __le__(self, y): # real signature unknown; restored from __doc__ 977 """ x.__le__(y) <==> x<=y """ 978 pass 979 980 def __lt__(self, y): # real signature unknown; restored from __doc__ 981 """ x.__lt__(y) <==> x<y """ 982 pass 983 984 def __mul__(self, n): # real signature unknown; restored from __doc__ 985 """ x.__mul__(n) <==> x*n """ 986 pass 987 988 @staticmethod # known case of __new__ 989 def __new__(S, *more): # real signature unknown; restored from __doc__ 990 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 991 pass 992 993 def __ne__(self, y): # real signature unknown; restored from __doc__ 994 """ x.__ne__(y) <==> x!=y """ 995 pass 996 997 def __repr__(self): # real signature unknown; restored from __doc__ 998 """ x.__repr__() <==> repr(x) """ 999 pass 1000 1001 def __reversed__(self): # real signature unknown; restored from __doc__ 1002 """ L.__reversed__() -- return a reverse iterator over the list """ 1003 pass 1004 1005 def __rmul__(self, n): # real signature unknown; restored from __doc__ 1006 """ x.__rmul__(n) <==> n*x """ 1007 pass 1008 1009 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 1010 """ x.__setitem__(i, y) <==> x[i]=y """ 1011 pass 1012 1013 def __setslice__(self, i, j, y): # real signature unknown; restored from __doc__ 1014 """ 1015 x.__setslice__(i, j, y) <==> x[i:j]=y 1016 1017 Use of negative indices is not supported. 1018 """ 1019 pass 1020 1021 def __sizeof__(self): # real signature unknown; restored from __doc__ 1022 """ L.__sizeof__() -- size of L in memory, in bytes """ 1023 pass 1024 1025 __hash__ = None 1026 1027 1028 class long(object): 1029 """ 1030 long(x=0) -> long 1031 long(x, base=10) -> long 1032 1033 Convert a number or string to a long integer, or return 0L if no arguments 1034 are given. If x is floating point, the conversion truncates towards zero. 1035 1036 If x is not a number or if base is given, then x must be a string or 1037 Unicode object representing an integer literal in the given base. The 1038 literal can be preceded by '+' or '-' and be surrounded by whitespace. 1039 The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to 1040 interpret the base from the string as an integer literal. 1041 >>> int('0b100', base=0) 1042 4L 1043 """ 1044 def bit_length(self): # real signature unknown; restored from __doc__ 1045 """ 1046 long.bit_length() -> int or long 1047 1048 Number of bits necessary to represent self in binary. 1049 >>> bin(37L) 1050 '0b100101' 1051 >>> (37L).bit_length() 1052 6 1053 """ 1054 return 0 1055 1056 def conjugate(self, *args, **kwargs): # real signature unknown 1057 """ Returns self, the complex conjugate of any long. """ 1058 pass 1059 1060 def __abs__(self): # real signature unknown; restored from __doc__ 1061 """ x.__abs__() <==> abs(x) """ 1062 pass 1063 1064 def __add__(self, y): # real signature unknown; restored from __doc__ 1065 """ x.__add__(y) <==> x+y """ 1066 pass 1067 1068 def __and__(self, y): # real signature unknown; restored from __doc__ 1069 """ x.__and__(y) <==> x&y """ 1070 pass 1071 1072 def __cmp__(self, y): # real signature unknown; restored from __doc__ 1073 """ x.__cmp__(y) <==> cmp(x,y) """ 1074 pass 1075 1076 def __coerce__(self, y): # real signature unknown; restored from __doc__ 1077 """ x.__coerce__(y) <==> coerce(x, y) """ 1078 pass 1079 1080 def __divmod__(self, y): # real signature unknown; restored from __doc__ 1081 """ x.__divmod__(y) <==> divmod(x, y) """ 1082 pass 1083 1084 def __div__(self, y): # real signature unknown; restored from __doc__ 1085 """ x.__div__(y) <==> x/y """ 1086 pass 1087 1088 def __float__(self): # real signature unknown; restored from __doc__ 1089 """ x.__float__() <==> float(x) """ 1090 pass 1091 1092 def __floordiv__(self, y): # real signature unknown; restored from __doc__ 1093 """ x.__floordiv__(y) <==> x//y """ 1094 pass 1095 1096 def __format__(self, *args, **kwargs): # real signature unknown 1097 pass 1098 1099 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1100 """ x.__getattribute__('name') <==> x.name """ 1101 pass 1102 1103 def __getnewargs__(self, *args, **kwargs): # real signature unknown 1104 pass 1105 1106 def __hash__(self): # real signature unknown; restored from __doc__ 1107 """ x.__hash__() <==> hash(x) """ 1108 pass 1109 1110 def __hex__(self): # real signature unknown; restored from __doc__ 1111 """ x.__hex__() <==> hex(x) """ 1112 pass 1113 1114 def __index__(self): # real signature unknown; restored from __doc__ 1115 """ x[y:z] <==> x[y.__index__():z.__index__()] """ 1116 pass 1117 1118 def __init__(self, x=0): # real signature unknown; restored from __doc__ 1119 pass 1120 1121 def __int__(self): # real signature unknown; restored from __doc__ 1122 """ x.__int__() <==> int(x) """ 1123 pass 1124 1125 def __invert__(self): # real signature unknown; restored from __doc__ 1126 """ x.__invert__() <==> ~x """ 1127 pass 1128 1129 def __long__(self): # real signature unknown; restored from __doc__ 1130 """ x.__long__() <==> long(x) """ 1131 pass 1132 1133 def __lshift__(self, y): # real signature unknown; restored from __doc__ 1134 """ x.__lshift__(y) <==> x<<y """ 1135 pass 1136 1137 def __mod__(self, y): # real signature unknown; restored from __doc__ 1138 """ x.__mod__(y) <==> x%y """ 1139 pass 1140 1141 def __mul__(self, y): # real signature unknown; restored from __doc__ 1142 """ x.__mul__(y) <==> x*y """ 1143 pass 1144 1145 def __neg__(self): # real signature unknown; restored from __doc__ 1146 """ x.__neg__() <==> -x """ 1147 pass 1148 1149 @staticmethod # known case of __new__ 1150 def __new__(S, *more): # real signature unknown; restored from __doc__ 1151 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1152 pass 1153 1154 def __nonzero__(self): # real signature unknown; restored from __doc__ 1155 """ x.__nonzero__() <==> x != 0 """ 1156 pass 1157 1158 def __oct__(self): # real signature unknown; restored from __doc__ 1159 """ x.__oct__() <==> oct(x) """ 1160 pass 1161 1162 def __or__(self, y): # real signature unknown; restored from __doc__ 1163 """ x.__or__(y) <==> x|y """ 1164 pass 1165 1166 def __pos__(self): # real signature unknown; restored from __doc__ 1167 """ x.__pos__() <==> +x """ 1168 pass 1169 1170 def __pow__(self, y, z=None): # real signature unknown; restored from __doc__ 1171 """ x.__pow__(y[, z]) <==> pow(x, y[, z]) """ 1172 pass 1173 1174 def __radd__(self, y): # real signature unknown; restored from __doc__ 1175 """ x.__radd__(y) <==> y+x """ 1176 pass 1177 1178 def __rand__(self, y): # real signature unknown; restored from __doc__ 1179 """ x.__rand__(y) <==> y&x """ 1180 pass 1181 1182 def __rdivmod__(self, y): # real signature unknown; restored from __doc__ 1183 """ x.__rdivmod__(y) <==> divmod(y, x) """ 1184 pass 1185 1186 def __rdiv__(self, y): # real signature unknown; restored from __doc__ 1187 """ x.__rdiv__(y) <==> y/x """ 1188 pass 1189 1190 def __repr__(self): # real signature unknown; restored from __doc__ 1191 """ x.__repr__() <==> repr(x) """ 1192 pass 1193 1194 def __rfloordiv__(self, y): # real signature unknown; restored from __doc__ 1195 """ x.__rfloordiv__(y) <==> y//x """ 1196 pass 1197 1198 def __rlshift__(self, y): # real signature unknown; restored from __doc__ 1199 """ x.__rlshift__(y) <==> y<<x """ 1200 pass 1201 1202 def __rmod__(self, y): # real signature unknown; restored from __doc__ 1203 """ x.__rmod__(y) <==> y%x """ 1204 pass 1205 1206 def __rmul__(self, y): # real signature unknown; restored from __doc__ 1207 """ x.__rmul__(y) <==> y*x """ 1208 pass 1209 1210 def __ror__(self, y): # real signature unknown; restored from __doc__ 1211 """ x.__ror__(y) <==> y|x """ 1212 pass 1213 1214 def __rpow__(self, x, z=None): # real signature unknown; restored from __doc__ 1215 """ y.__rpow__(x[, z]) <==> pow(x, y[, z]) """ 1216 pass 1217 1218 def __rrshift__(self, y): # real signature unknown; restored from __doc__ 1219 """ x.__rrshift__(y) <==> y>>x """ 1220 pass 1221 1222 def __rshift__(self, y): # real signature unknown; restored from __doc__ 1223 """ x.__rshift__(y) <==> x>>y """ 1224 pass 1225 1226 def __rsub__(self, y): # real signature unknown; restored from __doc__ 1227 """ x.__rsub__(y) <==> y-x """ 1228 pass 1229 1230 def __rtruediv__(self, y): # real signature unknown; restored from __doc__ 1231 """ x.__rtruediv__(y) <==> y/x """ 1232 pass 1233 1234 def __rxor__(self, y): # real signature unknown; restored from __doc__ 1235 """ x.__rxor__(y) <==> y^x """ 1236 pass 1237 1238 def __sizeof__(self, *args, **kwargs): # real signature unknown 1239 """ Returns size in memory, in bytes """ 1240 pass 1241 1242 def __str__(self): # real signature unknown; restored from __doc__ 1243 """ x.__str__() <==> str(x) """ 1244 pass 1245 1246 def __sub__(self, y): # real signature unknown; restored from __doc__ 1247 """ x.__sub__(y) <==> x-y """ 1248 pass 1249 1250 def __truediv__(self, y): # real signature unknown; restored from __doc__ 1251 """ x.__truediv__(y) <==> x/y """ 1252 pass 1253 1254 def __trunc__(self, *args, **kwargs): # real signature unknown 1255 """ Truncating an Integral returns itself. """ 1256 pass 1257 1258 def __xor__(self, y): # real signature unknown; restored from __doc__ 1259 """ x.__xor__(y) <==> x^y """ 1260 pass 1261 1262 denominator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1263 """the denominator of a rational number in lowest terms""" 1264 1265 imag = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1266 """the imaginary part of a complex number""" 1267 1268 numerator = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1269 """the numerator of a rational number in lowest terms""" 1270 1271 real = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1272 """the real part of a complex number""" 1273 1274 1275 1276 class memoryview(object): 1277 """ 1278 memoryview(object) 1279 1280 Create a new memoryview object which references the given object. 1281 """ 1282 def tobytes(self, *args, **kwargs): # real signature unknown 1283 pass 1284 1285 def tolist(self, *args, **kwargs): # real signature unknown 1286 pass 1287 1288 def __delitem__(self, y): # real signature unknown; restored from __doc__ 1289 """ x.__delitem__(y) <==> del x[y] """ 1290 pass 1291 1292 def __eq__(self, y): # real signature unknown; restored from __doc__ 1293 """ x.__eq__(y) <==> x==y """ 1294 pass 1295 1296 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1297 """ x.__getattribute__('name') <==> x.name """ 1298 pass 1299 1300 def __getitem__(self, y): # real signature unknown; restored from __doc__ 1301 """ x.__getitem__(y) <==> x[y] """ 1302 pass 1303 1304 def __ge__(self, y): # real signature unknown; restored from __doc__ 1305 """ x.__ge__(y) <==> x>=y """ 1306 pass 1307 1308 def __gt__(self, y): # real signature unknown; restored from __doc__ 1309 """ x.__gt__(y) <==> x>y """ 1310 pass 1311 1312 def __init__(self, p_object): # real signature unknown; restored from __doc__ 1313 pass 1314 1315 def __len__(self): # real signature unknown; restored from __doc__ 1316 """ x.__len__() <==> len(x) """ 1317 pass 1318 1319 def __le__(self, y): # real signature unknown; restored from __doc__ 1320 """ x.__le__(y) <==> x<=y """ 1321 pass 1322 1323 def __lt__(self, y): # real signature unknown; restored from __doc__ 1324 """ x.__lt__(y) <==> x<y """ 1325 pass 1326 1327 @staticmethod # known case of __new__ 1328 def __new__(S, *more): # real signature unknown; restored from __doc__ 1329 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1330 pass 1331 1332 def __ne__(self, y): # real signature unknown; restored from __doc__ 1333 """ x.__ne__(y) <==> x!=y """ 1334 pass 1335 1336 def __repr__(self): # real signature unknown; restored from __doc__ 1337 """ x.__repr__() <==> repr(x) """ 1338 pass 1339 1340 def __setitem__(self, i, y): # real signature unknown; restored from __doc__ 1341 """ x.__setitem__(i, y) <==> x[i]=y """ 1342 pass 1343 1344 format = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1345 1346 itemsize = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1347 1348 ndim = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1349 1350 readonly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1351 1352 shape = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1353 1354 strides = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1355 1356 suboffsets = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1357 1358 1359 1360 class property(object): 1361 """ 1362 property(fget=None, fset=None, fdel=None, doc=None) -> property attribute 1363 1364 fget is a function to be used for getting an attribute value, and likewise 1365 fset is a function for setting, and fdel a function for del'ing, an 1366 attribute. Typical use is to define a managed attribute x: 1367 1368 class C(object): 1369 def getx(self): return self._x 1370 def setx(self, value): self._x = value 1371 def delx(self): del self._x 1372 x = property(getx, setx, delx, "I'm the 'x' property.") 1373 1374 Decorators make defining new properties or modifying existing ones easy: 1375 1376 class C(object): 1377 @property 1378 def x(self): 1379 "I am the 'x' property." 1380 return self._x 1381 @x.setter 1382 def x(self, value): 1383 self._x = value 1384 @x.deleter 1385 def x(self): 1386 del self._x 1387 """ 1388 def deleter(self, *args, **kwargs): # real signature unknown 1389 """ Descriptor to change the deleter on a property. """ 1390 pass 1391 1392 def getter(self, *args, **kwargs): # real signature unknown 1393 """ Descriptor to change the getter on a property. """ 1394 pass 1395 1396 def setter(self, *args, **kwargs): # real signature unknown 1397 """ Descriptor to change the setter on a property. """ 1398 pass 1399 1400 def __delete__(self, obj): # real signature unknown; restored from __doc__ 1401 """ descr.__delete__(obj) """ 1402 pass 1403 1404 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1405 """ x.__getattribute__('name') <==> x.name """ 1406 pass 1407 1408 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 1409 """ descr.__get__(obj[, type]) -> value """ 1410 pass 1411 1412 def __init__(self, fget=None, fset=None, fdel=None, doc=None): # known special case of property.__init__ 1413 """ 1414 property(fget=None, fset=None, fdel=None, doc=None) -> property attribute 1415 1416 fget is a function to be used for getting an attribute value, and likewise 1417 fset is a function for setting, and fdel a function for del'ing, an 1418 attribute. Typical use is to define a managed attribute x: 1419 1420 class C(object): 1421 def getx(self): return self._x 1422 def setx(self, value): self._x = value 1423 def delx(self): del self._x 1424 x = property(getx, setx, delx, "I'm the 'x' property.") 1425 1426 Decorators make defining new properties or modifying existing ones easy: 1427 1428 class C(object): 1429 @property 1430 def x(self): 1431 "I am the 'x' property." 1432 return self._x 1433 @x.setter 1434 def x(self, value): 1435 self._x = value 1436 @x.deleter 1437 def x(self): 1438 del self._x 1439 1440 # (copied from class doc) 1441 """ 1442 pass 1443 1444 @staticmethod # known case of __new__ 1445 def __new__(S, *more): # real signature unknown; restored from __doc__ 1446 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1447 pass 1448 1449 def __set__(self, obj, value): # real signature unknown; restored from __doc__ 1450 """ descr.__set__(obj, value) """ 1451 pass 1452 1453 fdel = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1454 1455 fget = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1456 1457 fset = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1458 1459 1460 1461 class reversed(object): 1462 """ 1463 reversed(sequence) -> reverse iterator over values of the sequence 1464 1465 Return a reverse iterator 1466 """ 1467 def next(self): # real signature unknown; restored from __doc__ 1468 """ x.next() -> the next value, or raise StopIteration """ 1469 pass 1470 1471 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1472 """ x.__getattribute__('name') <==> x.name """ 1473 pass 1474 1475 def __init__(self, sequence): # real signature unknown; restored from __doc__ 1476 pass 1477 1478 def __iter__(self): # real signature unknown; restored from __doc__ 1479 """ x.__iter__() <==> iter(x) """ 1480 pass 1481 1482 def __length_hint__(self, *args, **kwargs): # real signature unknown 1483 """ Private method returning an estimate of len(list(it)). """ 1484 pass 1485 1486 @staticmethod # known case of __new__ 1487 def __new__(S, *more): # real signature unknown; restored from __doc__ 1488 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1489 pass 1490 1491 1492 class set(object): 1493 """ 1494 set() -> new empty set object 1495 set(iterable) -> new set object 1496 1497 Build an unordered collection of unique elements. 1498 """ 1499 def add(self, *args, **kwargs): # real signature unknown 1500 """ 1501 Add an element to a set. 1502 1503 This has no effect if the element is already present. 1504 """ 1505 pass 1506 1507 def clear(self, *args, **kwargs): # real signature unknown 1508 """ Remove all elements from this set. """ 1509 pass 1510 1511 def copy(self, *args, **kwargs): # real signature unknown 1512 """ Return a shallow copy of a set. """ 1513 pass 1514 1515 def difference(self, *args, **kwargs): # real signature unknown 1516 """ 1517 Return the difference of two or more sets as a new set. 1518 1519 (i.e. all elements that are in this set but not the others.) 1520 """ 1521 pass 1522 1523 def difference_update(self, *args, **kwargs): # real signature unknown 1524 """ Remove all elements of another set from this set. """ 1525 pass 1526 1527 def discard(self, *args, **kwargs): # real signature unknown 1528 """ 1529 Remove an element from a set if it is a member. 1530 1531 If the element is not a member, do nothing. 1532 """ 1533 pass 1534 1535 def intersection(self, *args, **kwargs): # real signature unknown 1536 """ 1537 Return the intersection of two or more sets as a new set. 1538 1539 (i.e. elements that are common to all of the sets.) 1540 """ 1541 pass 1542 1543 def intersection_update(self, *args, **kwargs): # real signature unknown 1544 """ Update a set with the intersection of itself and another. """ 1545 pass 1546 1547 def isdisjoint(self, *args, **kwargs): # real signature unknown 1548 """ Return True if two sets have a null intersection. """ 1549 pass 1550 1551 def issubset(self, *args, **kwargs): # real signature unknown 1552 """ Report whether another set contains this set. """ 1553 pass 1554 1555 def issuperset(self, *args, **kwargs): # real signature unknown 1556 """ Report whether this set contains another set. """ 1557 pass 1558 1559 def pop(self, *args, **kwargs): # real signature unknown 1560 """ 1561 Remove and return an arbitrary set element. 1562 Raises KeyError if the set is empty. 1563 """ 1564 pass 1565 1566 def remove(self, *args, **kwargs): # real signature unknown 1567 """ 1568 Remove an element from a set; it must be a member. 1569 1570 If the element is not a member, raise a KeyError. 1571 """ 1572 pass 1573 1574 def symmetric_difference(self, *args, **kwargs): # real signature unknown 1575 """ 1576 Return the symmetric difference of two sets as a new set. 1577 1578 (i.e. all elements that are in exactly one of the sets.) 1579 """ 1580 pass 1581 1582 def symmetric_difference_update(self, *args, **kwargs): # real signature unknown 1583 """ Update a set with the symmetric difference of itself and another. """ 1584 pass 1585 1586 def union(self, *args, **kwargs): # real signature unknown 1587 """ 1588 Return the union of sets as a new set. 1589 1590 (i.e. all elements that are in either set.) 1591 """ 1592 pass 1593 1594 def update(self, *args, **kwargs): # real signature unknown 1595 """ Update a set with the union of itself and others. """ 1596 pass 1597 1598 def __and__(self, y): # real signature unknown; restored from __doc__ 1599 """ x.__and__(y) <==> x&y """ 1600 pass 1601 1602 def __cmp__(self, y): # real signature unknown; restored from __doc__ 1603 """ x.__cmp__(y) <==> cmp(x,y) """ 1604 pass 1605 1606 def __contains__(self, y): # real signature unknown; restored from __doc__ 1607 """ x.__contains__(y) <==> y in x. """ 1608 pass 1609 1610 def __eq__(self, y): # real signature unknown; restored from __doc__ 1611 """ x.__eq__(y) <==> x==y """ 1612 pass 1613 1614 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1615 """ x.__getattribute__('name') <==> x.name """ 1616 pass 1617 1618 def __ge__(self, y): # real signature unknown; restored from __doc__ 1619 """ x.__ge__(y) <==> x>=y """ 1620 pass 1621 1622 def __gt__(self, y): # real signature unknown; restored from __doc__ 1623 """ x.__gt__(y) <==> x>y """ 1624 pass 1625 1626 def __iand__(self, y): # real signature unknown; restored from __doc__ 1627 """ x.__iand__(y) <==> x&=y """ 1628 pass 1629 1630 def __init__(self, seq=()): # known special case of set.__init__ 1631 """ 1632 set() -> new empty set object 1633 set(iterable) -> new set object 1634 1635 Build an unordered collection of unique elements. 1636 # (copied from class doc) 1637 """ 1638 pass 1639 1640 def __ior__(self, y): # real signature unknown; restored from __doc__ 1641 """ x.__ior__(y) <==> x|=y """ 1642 pass 1643 1644 def __isub__(self, y): # real signature unknown; restored from __doc__ 1645 """ x.__isub__(y) <==> x-=y """ 1646 pass 1647 1648 def __iter__(self): # real signature unknown; restored from __doc__ 1649 """ x.__iter__() <==> iter(x) """ 1650 pass 1651 1652 def __ixor__(self, y): # real signature unknown; restored from __doc__ 1653 """ x.__ixor__(y) <==> x^=y """ 1654 pass 1655 1656 def __len__(self): # real signature unknown; restored from __doc__ 1657 """ x.__len__() <==> len(x) """ 1658 pass 1659 1660 def __le__(self, y): # real signature unknown; restored from __doc__ 1661 """ x.__le__(y) <==> x<=y """ 1662 pass 1663 1664 def __lt__(self, y): # real signature unknown; restored from __doc__ 1665 """ x.__lt__(y) <==> x<y """ 1666 pass 1667 1668 @staticmethod # known case of __new__ 1669 def __new__(S, *more): # real signature unknown; restored from __doc__ 1670 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1671 pass 1672 1673 def __ne__(self, y): # real signature unknown; restored from __doc__ 1674 """ x.__ne__(y) <==> x!=y """ 1675 pass 1676 1677 def __or__(self, y): # real signature unknown; restored from __doc__ 1678 """ x.__or__(y) <==> x|y """ 1679 pass 1680 1681 def __rand__(self, y): # real signature unknown; restored from __doc__ 1682 """ x.__rand__(y) <==> y&x """ 1683 pass 1684 1685 def __reduce__(self, *args, **kwargs): # real signature unknown 1686 """ Return state information for pickling. """ 1687 pass 1688 1689 def __repr__(self): # real signature unknown; restored from __doc__ 1690 """ x.__repr__() <==> repr(x) """ 1691 pass 1692 1693 def __ror__(self, y): # real signature unknown; restored from __doc__ 1694 """ x.__ror__(y) <==> y|x """ 1695 pass 1696 1697 def __rsub__(self, y): # real signature unknown; restored from __doc__ 1698 """ x.__rsub__(y) <==> y-x """ 1699 pass 1700 1701 def __rxor__(self, y): # real signature unknown; restored from __doc__ 1702 """ x.__rxor__(y) <==> y^x """ 1703 pass 1704 1705 def __sizeof__(self): # real signature unknown; restored from __doc__ 1706 """ S.__sizeof__() -> size of S in memory, in bytes """ 1707 pass 1708 1709 def __sub__(self, y): # real signature unknown; restored from __doc__ 1710 """ x.__sub__(y) <==> x-y """ 1711 pass 1712 1713 def __xor__(self, y): # real signature unknown; restored from __doc__ 1714 """ x.__xor__(y) <==> x^y """ 1715 pass 1716 1717 __hash__ = None 1718 1719 1720 class slice(object): 1721 """ 1722 slice(stop) 1723 slice(start, stop[, step]) 1724 1725 Create a slice object. This is used for extended slicing (e.g. a[0:10:2]). 1726 """ 1727 def indices(self, len): # real signature unknown; restored from __doc__ 1728 """ 1729 S.indices(len) -> (start, stop, stride) 1730 1731 Assuming a sequence of length len, calculate the start and stop 1732 indices, and the stride length of the extended slice described by 1733 S. Out of bounds indices are clipped in a manner consistent with the 1734 handling of normal slices. 1735 """ 1736 pass 1737 1738 def __cmp__(self, y): # real signature unknown; restored from __doc__ 1739 """ x.__cmp__(y) <==> cmp(x,y) """ 1740 pass 1741 1742 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1743 """ x.__getattribute__('name') <==> x.name """ 1744 pass 1745 1746 def __hash__(self): # real signature unknown; restored from __doc__ 1747 """ x.__hash__() <==> hash(x) """ 1748 pass 1749 1750 def __init__(self, stop): # real signature unknown; restored from __doc__ 1751 pass 1752 1753 @staticmethod # known case of __new__ 1754 def __new__(S, *more): # real signature unknown; restored from __doc__ 1755 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1756 pass 1757 1758 def __reduce__(self, *args, **kwargs): # real signature unknown 1759 """ Return state information for pickling. """ 1760 pass 1761 1762 def __repr__(self): # real signature unknown; restored from __doc__ 1763 """ x.__repr__() <==> repr(x) """ 1764 pass 1765 1766 start = property(lambda self: 0) 1767 """:type: int""" 1768 1769 step = property(lambda self: 0) 1770 """:type: int""" 1771 1772 stop = property(lambda self: 0) 1773 """:type: int""" 1774 1775 1776 1777 class staticmethod(object): 1778 """ 1779 staticmethod(function) -> method 1780 1781 Convert a function to be a static method. 1782 1783 A static method does not receive an implicit first argument. 1784 To declare a static method, use this idiom: 1785 1786 class C: 1787 def f(arg1, arg2, ...): ... 1788 f = staticmethod(f) 1789 1790 It can be called either on the class (e.g. C.f()) or on an instance 1791 (e.g. C().f()). The instance is ignored except for its class. 1792 1793 Static methods in Python are similar to those found in Java or C++. 1794 For a more advanced concept, see the classmethod builtin. 1795 """ 1796 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1797 """ x.__getattribute__('name') <==> x.name """ 1798 pass 1799 1800 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 1801 """ descr.__get__(obj[, type]) -> value """ 1802 pass 1803 1804 def __init__(self, function): # real signature unknown; restored from __doc__ 1805 pass 1806 1807 @staticmethod # known case of __new__ 1808 def __new__(S, *more): # real signature unknown; restored from __doc__ 1809 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1810 pass 1811 1812 __func__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 1813 1814 1815 1816 class super(object): 1817 """ 1818 super(type, obj) -> bound super object; requires isinstance(obj, type) 1819 super(type) -> unbound super object 1820 super(type, type2) -> bound super object; requires issubclass(type2, type) 1821 Typical use to call a cooperative superclass method: 1822 class C(B): 1823 def meth(self, arg): 1824 super(C, self).meth(arg) 1825 """ 1826 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1827 """ x.__getattribute__('name') <==> x.name """ 1828 pass 1829 1830 def __get__(self, obj, type=None): # real signature unknown; restored from __doc__ 1831 """ descr.__get__(obj[, type]) -> value """ 1832 pass 1833 1834 def __init__(self, type1, type2=None): # known special case of super.__init__ 1835 """ 1836 super(type, obj) -> bound super object; requires isinstance(obj, type) 1837 super(type) -> unbound super object 1838 super(type, type2) -> bound super object; requires issubclass(type2, type) 1839 Typical use to call a cooperative superclass method: 1840 class C(B): 1841 def meth(self, arg): 1842 super(C, self).meth(arg) 1843 # (copied from class doc) 1844 """ 1845 pass 1846 1847 @staticmethod # known case of __new__ 1848 def __new__(S, *more): # real signature unknown; restored from __doc__ 1849 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1850 pass 1851 1852 def __repr__(self): # real signature unknown; restored from __doc__ 1853 """ x.__repr__() <==> repr(x) """ 1854 pass 1855 1856 __self_class__ = property(lambda self: type(object)) 1857 """the type of the instance invoking super(); may be None 1858 1859 :type: type 1860 """ 1861 1862 __self__ = property(lambda self: type(object)) 1863 """the instance invoking super(); may be None 1864 1865 :type: type 1866 """ 1867 1868 __thisclass__ = property(lambda self: type(object)) 1869 """the class invoking super() 1870 1871 :type: type 1872 """ 1873 1874 1875 1876 class tuple(object): 1877 """ 1878 tuple() -> empty tuple 1879 tuple(iterable) -> tuple initialized from iterable's items 1880 1881 If the argument is a tuple, the return value is the same object. 1882 """ 1883 def count(self, value): # real signature unknown; restored from __doc__ 1884 """ T.count(value) -> integer -- return number of occurrences of value """ 1885 return 0 1886 1887 def index(self, value, start=None, stop=None): # real signature unknown; restored from __doc__ 1888 """ 1889 T.index(value, [start, [stop]]) -> integer -- return first index of value. 1890 Raises ValueError if the value is not present. 1891 """ 1892 return 0 1893 1894 def __add__(self, y): # real signature unknown; restored from __doc__ 1895 """ x.__add__(y) <==> x+y """ 1896 pass 1897 1898 def __contains__(self, y): # real signature unknown; restored from __doc__ 1899 """ x.__contains__(y) <==> y in x """ 1900 pass 1901 1902 def __eq__(self, y): # real signature unknown; restored from __doc__ 1903 """ x.__eq__(y) <==> x==y """ 1904 pass 1905 1906 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 1907 """ x.__getattribute__('name') <==> x.name """ 1908 pass 1909 1910 def __getitem__(self, y): # real signature unknown; restored from __doc__ 1911 """ x.__getitem__(y) <==> x[y] """ 1912 pass 1913 1914 def __getnewargs__(self, *args, **kwargs): # real signature unknown 1915 pass 1916 1917 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 1918 """ 1919 x.__getslice__(i, j) <==> x[i:j] 1920 1921 Use of negative indices is not supported. 1922 """ 1923 pass 1924 1925 def __ge__(self, y): # real signature unknown; restored from __doc__ 1926 """ x.__ge__(y) <==> x>=y """ 1927 pass 1928 1929 def __gt__(self, y): # real signature unknown; restored from __doc__ 1930 """ x.__gt__(y) <==> x>y """ 1931 pass 1932 1933 def __hash__(self): # real signature unknown; restored from __doc__ 1934 """ x.__hash__() <==> hash(x) """ 1935 pass 1936 1937 def __init__(self, seq=()): # known special case of tuple.__init__ 1938 """ 1939 tuple() -> empty tuple 1940 tuple(iterable) -> tuple initialized from iterable's items 1941 1942 If the argument is a tuple, the return value is the same object. 1943 # (copied from class doc) 1944 """ 1945 pass 1946 1947 def __iter__(self): # real signature unknown; restored from __doc__ 1948 """ x.__iter__() <==> iter(x) """ 1949 pass 1950 1951 def __len__(self): # real signature unknown; restored from __doc__ 1952 """ x.__len__() <==> len(x) """ 1953 pass 1954 1955 def __le__(self, y): # real signature unknown; restored from __doc__ 1956 """ x.__le__(y) <==> x<=y """ 1957 pass 1958 1959 def __lt__(self, y): # real signature unknown; restored from __doc__ 1960 """ x.__lt__(y) <==> x<y """ 1961 pass 1962 1963 def __mul__(self, n): # real signature unknown; restored from __doc__ 1964 """ x.__mul__(n) <==> x*n """ 1965 pass 1966 1967 @staticmethod # known case of __new__ 1968 def __new__(S, *more): # real signature unknown; restored from __doc__ 1969 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 1970 pass 1971 1972 def __ne__(self, y): # real signature unknown; restored from __doc__ 1973 """ x.__ne__(y) <==> x!=y """ 1974 pass 1975 1976 def __repr__(self): # real signature unknown; restored from __doc__ 1977 """ x.__repr__() <==> repr(x) """ 1978 pass 1979 1980 def __rmul__(self, n): # real signature unknown; restored from __doc__ 1981 """ x.__rmul__(n) <==> n*x """ 1982 pass 1983 1984 1985 class type(object): 1986 """ 1987 type(object) -> the object's type 1988 type(name, bases, dict) -> a new type 1989 """ 1990 def mro(self): # real signature unknown; restored from __doc__ 1991 """ 1992 mro() -> list 1993 return a type's method resolution order 1994 """ 1995 return [] 1996 1997 def __call__(self, *more): # real signature unknown; restored from __doc__ 1998 """ x.__call__(...) <==> x(...) """ 1999 pass 2000 2001 def __delattr__(self, name): # real signature unknown; restored from __doc__ 2002 """ x.__delattr__('name') <==> del x.name """ 2003 pass 2004 2005 def __eq__(self, y): # real signature unknown; restored from __doc__ 2006 """ x.__eq__(y) <==> x==y """ 2007 pass 2008 2009 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2010 """ x.__getattribute__('name') <==> x.name """ 2011 pass 2012 2013 def __ge__(self, y): # real signature unknown; restored from __doc__ 2014 """ x.__ge__(y) <==> x>=y """ 2015 pass 2016 2017 def __gt__(self, y): # real signature unknown; restored from __doc__ 2018 """ x.__gt__(y) <==> x>y """ 2019 pass 2020 2021 def __hash__(self): # real signature unknown; restored from __doc__ 2022 """ x.__hash__() <==> hash(x) """ 2023 pass 2024 2025 def __init__(cls, what, bases=None, dict=None): # known special case of type.__init__ 2026 """ 2027 type(object) -> the object's type 2028 type(name, bases, dict) -> a new type 2029 # (copied from class doc) 2030 """ 2031 pass 2032 2033 def __instancecheck__(self): # real signature unknown; restored from __doc__ 2034 """ 2035 __instancecheck__() -> bool 2036 check if an object is an instance 2037 """ 2038 return False 2039 2040 def __le__(self, y): # real signature unknown; restored from __doc__ 2041 """ x.__le__(y) <==> x<=y """ 2042 pass 2043 2044 def __lt__(self, y): # real signature unknown; restored from __doc__ 2045 """ x.__lt__(y) <==> x<y """ 2046 pass 2047 2048 @staticmethod # known case of __new__ 2049 def __new__(S, *more): # real signature unknown; restored from __doc__ 2050 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2051 pass 2052 2053 def __ne__(self, y): # real signature unknown; restored from __doc__ 2054 """ x.__ne__(y) <==> x!=y """ 2055 pass 2056 2057 def __repr__(self): # real signature unknown; restored from __doc__ 2058 """ x.__repr__() <==> repr(x) """ 2059 pass 2060 2061 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 2062 """ x.__setattr__('name', value) <==> x.name = value """ 2063 pass 2064 2065 def __subclasscheck__(self): # real signature unknown; restored from __doc__ 2066 """ 2067 __subclasscheck__() -> bool 2068 check if a class is a subclass 2069 """ 2070 return False 2071 2072 def __subclasses__(self): # real signature unknown; restored from __doc__ 2073 """ __subclasses__() -> list of immediate subclasses """ 2074 return [] 2075 2076 __abstractmethods__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default 2077 2078 2079 __bases__ = ( 2080 object, 2081 ) 2082 __base__ = object 2083 __basicsize__ = 436 2084 __dictoffset__ = 132 2085 __dict__ = None # (!) real value is '' 2086 __flags__ = -2146544149 2087 __itemsize__ = 20 2088 __mro__ = ( 2089 None, # (!) forward: type, real value is '' 2090 object, 2091 ) 2092 __name__ = 'type' 2093 __weakrefoffset__ = 184 2094 2095 2096 class unicode(basestring): 2097 """ 2098 unicode(object='') -> unicode object 2099 unicode(string[, encoding[, errors]]) -> unicode object 2100 2101 Create a new Unicode object from the given encoded string. 2102 encoding defaults to the current default string encoding. 2103 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 2104 """ 2105 def capitalize(self): # real signature unknown; restored from __doc__ 2106 """ 2107 S.capitalize() -> unicode 2108 2109 Return a capitalized version of S, i.e. make the first character 2110 have upper case and the rest lower case. 2111 """ 2112 return u"" 2113 2114 def center(self, width, fillchar=None): # real signature unknown; restored from __doc__ 2115 """ 2116 S.center(width[, fillchar]) -> unicode 2117 2118 Return S centered in a Unicode string of length width. Padding is 2119 done using the specified fill character (default is a space) 2120 """ 2121 return u"" 2122 2123 def count(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2124 """ 2125 S.count(sub[, start[, end]]) -> int 2126 2127 Return the number of non-overlapping occurrences of substring sub in 2128 Unicode string S[start:end]. Optional arguments start and end are 2129 interpreted as in slice notation. 2130 """ 2131 return 0 2132 2133 def decode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 2134 """ 2135 S.decode([encoding[,errors]]) -> string or unicode 2136 2137 Decodes S using the codec registered for encoding. encoding defaults 2138 to the default encoding. errors may be given to set a different error 2139 handling scheme. Default is 'strict' meaning that encoding errors raise 2140 a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' 2141 as well as any other name registered with codecs.register_error that is 2142 able to handle UnicodeDecodeErrors. 2143 """ 2144 return "" 2145 2146 def encode(self, encoding=None, errors=None): # real signature unknown; restored from __doc__ 2147 """ 2148 S.encode([encoding[,errors]]) -> string or unicode 2149 2150 Encodes S using the codec registered for encoding. encoding defaults 2151 to the default encoding. errors may be given to set a different error 2152 handling scheme. Default is 'strict' meaning that encoding errors raise 2153 a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 2154 'xmlcharrefreplace' as well as any other name registered with 2155 codecs.register_error that can handle UnicodeEncodeErrors. 2156 """ 2157 return "" 2158 2159 def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__ 2160 """ 2161 S.endswith(suffix[, start[, end]]) -> bool 2162 2163 Return True if S ends with the specified suffix, False otherwise. 2164 With optional start, test S beginning at that position. 2165 With optional end, stop comparing S at that position. 2166 suffix can also be a tuple of strings to try. 2167 """ 2168 return False 2169 2170 def expandtabs(self, tabsize=None): # real signature unknown; restored from __doc__ 2171 """ 2172 S.expandtabs([tabsize]) -> unicode 2173 2174 Return a copy of S where all tab characters are expanded using spaces. 2175 If tabsize is not given, a tab size of 8 characters is assumed. 2176 """ 2177 return u"" 2178 2179 def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2180 """ 2181 S.find(sub [,start [,end]]) -> int 2182 2183 Return the lowest index in S where substring sub is found, 2184 such that sub is contained within S[start:end]. Optional 2185 arguments start and end are interpreted as in slice notation. 2186 2187 Return -1 on failure. 2188 """ 2189 return 0 2190 2191 def format(*args, **kwargs): # known special case of unicode.format 2192 """ 2193 S.format(*args, **kwargs) -> unicode 2194 2195 Return a formatted version of S, using substitutions from args and kwargs. 2196 The substitutions are identified by braces ('{' and '}'). 2197 """ 2198 pass 2199 2200 def index(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2201 """ 2202 S.index(sub [,start [,end]]) -> int 2203 2204 Like S.find() but raise ValueError when the substring is not found. 2205 """ 2206 return 0 2207 2208 def isalnum(self): # real signature unknown; restored from __doc__ 2209 """ 2210 S.isalnum() -> bool 2211 2212 Return True if all characters in S are alphanumeric 2213 and there is at least one character in S, False otherwise. 2214 """ 2215 return False 2216 2217 def isalpha(self): # real signature unknown; restored from __doc__ 2218 """ 2219 S.isalpha() -> bool 2220 2221 Return True if all characters in S are alphabetic 2222 and there is at least one character in S, False otherwise. 2223 """ 2224 return False 2225 2226 def isdecimal(self): # real signature unknown; restored from __doc__ 2227 """ 2228 S.isdecimal() -> bool 2229 2230 Return True if there are only decimal characters in S, 2231 False otherwise. 2232 """ 2233 return False 2234 2235 def isdigit(self): # real signature unknown; restored from __doc__ 2236 """ 2237 S.isdigit() -> bool 2238 2239 Return True if all characters in S are digits 2240 and there is at least one character in S, False otherwise. 2241 """ 2242 return False 2243 2244 def islower(self): # real signature unknown; restored from __doc__ 2245 """ 2246 S.islower() -> bool 2247 2248 Return True if all cased characters in S are lowercase and there is 2249 at least one cased character in S, False otherwise. 2250 """ 2251 return False 2252 2253 def isnumeric(self): # real signature unknown; restored from __doc__ 2254 """ 2255 S.isnumeric() -> bool 2256 2257 Return True if there are only numeric characters in S, 2258 False otherwise. 2259 """ 2260 return False 2261 2262 def isspace(self): # real signature unknown; restored from __doc__ 2263 """ 2264 S.isspace() -> bool 2265 2266 Return True if all characters in S are whitespace 2267 and there is at least one character in S, False otherwise. 2268 """ 2269 return False 2270 2271 def istitle(self): # real signature unknown; restored from __doc__ 2272 """ 2273 S.istitle() -> bool 2274 2275 Return True if S is a titlecased string and there is at least one 2276 character in S, i.e. upper- and titlecase characters may only 2277 follow uncased characters and lowercase characters only cased ones. 2278 Return False otherwise. 2279 """ 2280 return False 2281 2282 def isupper(self): # real signature unknown; restored from __doc__ 2283 """ 2284 S.isupper() -> bool 2285 2286 Return True if all cased characters in S are uppercase and there is 2287 at least one cased character in S, False otherwise. 2288 """ 2289 return False 2290 2291 def join(self, iterable): # real signature unknown; restored from __doc__ 2292 """ 2293 S.join(iterable) -> unicode 2294 2295 Return a string which is the concatenation of the strings in the 2296 iterable. The separator between elements is S. 2297 """ 2298 return u"" 2299 2300 def ljust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 2301 """ 2302 S.ljust(width[, fillchar]) -> int 2303 2304 Return S left-justified in a Unicode string of length width. Padding is 2305 done using the specified fill character (default is a space). 2306 """ 2307 return 0 2308 2309 def lower(self): # real signature unknown; restored from __doc__ 2310 """ 2311 S.lower() -> unicode 2312 2313 Return a copy of the string S converted to lowercase. 2314 """ 2315 return u"" 2316 2317 def lstrip(self, chars=None): # real signature unknown; restored from __doc__ 2318 """ 2319 S.lstrip([chars]) -> unicode 2320 2321 Return a copy of the string S with leading whitespace removed. 2322 If chars is given and not None, remove characters in chars instead. 2323 If chars is a str, it will be converted to unicode before stripping 2324 """ 2325 return u"" 2326 2327 def partition(self, sep): # real signature unknown; restored from __doc__ 2328 """ 2329 S.partition(sep) -> (head, sep, tail) 2330 2331 Search for the separator sep in S, and return the part before it, 2332 the separator itself, and the part after it. If the separator is not 2333 found, return S and two empty strings. 2334 """ 2335 pass 2336 2337 def replace(self, old, new, count=None): # real signature unknown; restored from __doc__ 2338 """ 2339 S.replace(old, new[, count]) -> unicode 2340 2341 Return a copy of S with all occurrences of substring 2342 old replaced by new. If the optional argument count is 2343 given, only the first count occurrences are replaced. 2344 """ 2345 return u"" 2346 2347 def rfind(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2348 """ 2349 S.rfind(sub [,start [,end]]) -> int 2350 2351 Return the highest index in S where substring sub is found, 2352 such that sub is contained within S[start:end]. Optional 2353 arguments start and end are interpreted as in slice notation. 2354 2355 Return -1 on failure. 2356 """ 2357 return 0 2358 2359 def rindex(self, sub, start=None, end=None): # real signature unknown; restored from __doc__ 2360 """ 2361 S.rindex(sub [,start [,end]]) -> int 2362 2363 Like S.rfind() but raise ValueError when the substring is not found. 2364 """ 2365 return 0 2366 2367 def rjust(self, width, fillchar=None): # real signature unknown; restored from __doc__ 2368 """ 2369 S.rjust(width[, fillchar]) -> unicode 2370 2371 Return S right-justified in a Unicode string of length width. Padding is 2372 done using the specified fill character (default is a space). 2373 """ 2374 return u"" 2375 2376 def rpartition(self, sep): # real signature unknown; restored from __doc__ 2377 """ 2378 S.rpartition(sep) -> (head, sep, tail) 2379 2380 Search for the separator sep in S, starting at the end of S, and return 2381 the part before it, the separator itself, and the part after it. If the 2382 separator is not found, return two empty strings and S. 2383 """ 2384 pass 2385 2386 def rsplit(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 2387 """ 2388 S.rsplit([sep [,maxsplit]]) -> list of strings 2389 2390 Return a list of the words in S, using sep as the 2391 delimiter string, starting at the end of the string and 2392 working to the front. If maxsplit is given, at most maxsplit 2393 splits are done. If sep is not specified, any whitespace string 2394 is a separator. 2395 """ 2396 return [] 2397 2398 def rstrip(self, chars=None): # real signature unknown; restored from __doc__ 2399 """ 2400 S.rstrip([chars]) -> unicode 2401 2402 Return a copy of the string S with trailing whitespace removed. 2403 If chars is given and not None, remove characters in chars instead. 2404 If chars is a str, it will be converted to unicode before stripping 2405 """ 2406 return u"" 2407 2408 def split(self, sep=None, maxsplit=None): # real signature unknown; restored from __doc__ 2409 """ 2410 S.split([sep [,maxsplit]]) -> list of strings 2411 2412 Return a list of the words in S, using sep as the 2413 delimiter string. If maxsplit is given, at most maxsplit 2414 splits are done. If sep is not specified or is None, any 2415 whitespace string is a separator and empty strings are 2416 removed from the result. 2417 """ 2418 return [] 2419 2420 def splitlines(self, keepends=False): # real signature unknown; restored from __doc__ 2421 """ 2422 S.splitlines(keepends=False) -> list of strings 2423 2424 Return a list of the lines in S, breaking at line boundaries. 2425 Line breaks are not included in the resulting list unless keepends 2426 is given and true. 2427 """ 2428 return [] 2429 2430 def startswith(self, prefix, start=None, end=None): # real signature unknown; restored from __doc__ 2431 """ 2432 S.startswith(prefix[, start[, end]]) -> bool 2433 2434 Return True if S starts with the specified prefix, False otherwise. 2435 With optional start, test S beginning at that position. 2436 With optional end, stop comparing S at that position. 2437 prefix can also be a tuple of strings to try. 2438 """ 2439 return False 2440 2441 def strip(self, chars=None): # real signature unknown; restored from __doc__ 2442 """ 2443 S.strip([chars]) -> unicode 2444 2445 Return a copy of the string S with leading and trailing 2446 whitespace removed. 2447 If chars is given and not None, remove characters in chars instead. 2448 If chars is a str, it will be converted to unicode before stripping 2449 """ 2450 return u"" 2451 2452 def swapcase(self): # real signature unknown; restored from __doc__ 2453 """ 2454 S.swapcase() -> unicode 2455 2456 Return a copy of S with uppercase characters converted to lowercase 2457 and vice versa. 2458 """ 2459 return u"" 2460 2461 def title(self): # real signature unknown; restored from __doc__ 2462 """ 2463 S.title() -> unicode 2464 2465 Return a titlecased version of S, i.e. words start with title case 2466 characters, all remaining cased characters have lower case. 2467 """ 2468 return u"" 2469 2470 def translate(self, table): # real signature unknown; restored from __doc__ 2471 """ 2472 S.translate(table) -> unicode 2473 2474 Return a copy of the string S, where all characters have been mapped 2475 through the given translation table, which must be a mapping of 2476 Unicode ordinals to Unicode ordinals, Unicode strings or None. 2477 Unmapped characters are left untouched. Characters mapped to None 2478 are deleted. 2479 """ 2480 return u"" 2481 2482 def upper(self): # real signature unknown; restored from __doc__ 2483 """ 2484 S.upper() -> unicode 2485 2486 Return a copy of S converted to uppercase. 2487 """ 2488 return u"" 2489 2490 def zfill(self, width): # real signature unknown; restored from __doc__ 2491 """ 2492 S.zfill(width) -> unicode 2493 2494 Pad a numeric string S with zeros on the left, to fill a field 2495 of the specified width. The string S is never truncated. 2496 """ 2497 return u"" 2498 2499 def _formatter_field_name_split(self, *args, **kwargs): # real signature unknown 2500 pass 2501 2502 def _formatter_parser(self, *args, **kwargs): # real signature unknown 2503 pass 2504 2505 def __add__(self, y): # real signature unknown; restored from __doc__ 2506 """ x.__add__(y) <==> x+y """ 2507 pass 2508 2509 def __contains__(self, y): # real signature unknown; restored from __doc__ 2510 """ x.__contains__(y) <==> y in x """ 2511 pass 2512 2513 def __eq__(self, y): # real signature unknown; restored from __doc__ 2514 """ x.__eq__(y) <==> x==y """ 2515 pass 2516 2517 def __format__(self, format_spec): # real signature unknown; restored from __doc__ 2518 """ 2519 S.__format__(format_spec) -> unicode 2520 2521 Return a formatted version of S as described by format_spec. 2522 """ 2523 return u"" 2524 2525 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2526 """ x.__getattribute__('name') <==> x.name """ 2527 pass 2528 2529 def __getitem__(self, y): # real signature unknown; restored from __doc__ 2530 """ x.__getitem__(y) <==> x[y] """ 2531 pass 2532 2533 def __getnewargs__(self, *args, **kwargs): # real signature unknown 2534 pass 2535 2536 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 2537 """ 2538 x.__getslice__(i, j) <==> x[i:j] 2539 2540 Use of negative indices is not supported. 2541 """ 2542 pass 2543 2544 def __ge__(self, y): # real signature unknown; restored from __doc__ 2545 """ x.__ge__(y) <==> x>=y """ 2546 pass 2547 2548 def __gt__(self, y): # real signature unknown; restored from __doc__ 2549 """ x.__gt__(y) <==> x>y """ 2550 pass 2551 2552 def __hash__(self): # real signature unknown; restored from __doc__ 2553 """ x.__hash__() <==> hash(x) """ 2554 pass 2555 2556 def __init__(self, string=u'', encoding=None, errors='strict'): # known special case of unicode.__init__ 2557 """ 2558 unicode(object='') -> unicode object 2559 unicode(string[, encoding[, errors]]) -> unicode object 2560 2561 Create a new Unicode object from the given encoded string. 2562 encoding defaults to the current default string encoding. 2563 errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'. 2564 # (copied from class doc) 2565 """ 2566 pass 2567 2568 def __len__(self): # real signature unknown; restored from __doc__ 2569 """ x.__len__() <==> len(x) """ 2570 pass 2571 2572 def __le__(self, y): # real signature unknown; restored from __doc__ 2573 """ x.__le__(y) <==> x<=y """ 2574 pass 2575 2576 def __lt__(self, y): # real signature unknown; restored from __doc__ 2577 """ x.__lt__(y) <==> x<y """ 2578 pass 2579 2580 def __mod__(self, y): # real signature unknown; restored from __doc__ 2581 """ x.__mod__(y) <==> x%y """ 2582 pass 2583 2584 def __mul__(self, n): # real signature unknown; restored from __doc__ 2585 """ x.__mul__(n) <==> x*n """ 2586 pass 2587 2588 @staticmethod # known case of __new__ 2589 def __new__(S, *more): # real signature unknown; restored from __doc__ 2590 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2591 pass 2592 2593 def __ne__(self, y): # real signature unknown; restored from __doc__ 2594 """ x.__ne__(y) <==> x!=y """ 2595 pass 2596 2597 def __repr__(self): # real signature unknown; restored from __doc__ 2598 """ x.__repr__() <==> repr(x) """ 2599 pass 2600 2601 def __rmod__(self, y): # real signature unknown; restored from __doc__ 2602 """ x.__rmod__(y) <==> y%x """ 2603 pass 2604 2605 def __rmul__(self, n): # real signature unknown; restored from __doc__ 2606 """ x.__rmul__(n) <==> n*x """ 2607 pass 2608 2609 def __sizeof__(self): # real signature unknown; restored from __doc__ 2610 """ S.__sizeof__() -> size of S in memory, in bytes """ 2611 pass 2612 2613 def __str__(self): # real signature unknown; restored from __doc__ 2614 """ x.__str__() <==> str(x) """ 2615 pass 2616 2617 2618 class xrange(object): 2619 """ 2620 xrange(stop) -> xrange object 2621 xrange(start, stop[, step]) -> xrange object 2622 2623 Like range(), but instead of returning a list, returns an object that 2624 generates the numbers in the range on demand. For looping, this is 2625 slightly faster than range() and more memory efficient. 2626 """ 2627 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 2628 """ x.__getattribute__('name') <==> x.name """ 2629 pass 2630 2631 def __getitem__(self, y): # real signature unknown; restored from __doc__ 2632 """ x.__getitem__(y) <==> x[y] """ 2633 pass 2634 2635 def __init__(self, stop): # real signature unknown; restored from __doc__ 2636 pass 2637 2638 def __iter__(self): # real signature unknown; restored from __doc__ 2639 """ x.__iter__() <==> iter(x) """ 2640 pass 2641 2642 def __len__(self): # real signature unknown; restored from __doc__ 2643 """ x.__len__() <==> len(x) """ 2644 pass 2645 2646 @staticmethod # known case of __new__ 2647 def __new__(S, *more): # real signature unknown; restored from __doc__ 2648 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 2649 pass 2650 2651 def __reduce__(self, *args, **kwargs): # real signature unknown 2652 pass 2653 2654 def __repr__(self): # real signature unknown; restored from __doc__ 2655 """ x.__repr__() <==> repr(x) """ 2656 pass 2657 2658 def __reversed__(self, *args, **kwargs): # real signature unknown 2659 """ Returns a reverse iterator. """ 2660 pass 2661 2662 2663 # variables with complex values 2664 2665 Ellipsis = None # (!) real value is '' 2666 2667 NotImplemented = None # (!) real value is ''
具体用法举例如下:
1 >>> b={} #创建字典 2 >>> b['k1']=1 3 >>> b 4 {'k1': 1} 5 >>> s={1:2,3:4,5:6} 6 >>> s 7 {1: 2, 3: 4, 5: 6} 8 >>> s.clear() 清空字典 9 >>> s 10 {} 11 >>> a={1:2,3:4,'Dicky':19} 12 >>> a 13 {1: 2, 3: 4, 'Dicky': 19} 14 >>> a.get(1) 获取keys值 15 2 16 >>> a.has_key(1) 判断字典里是否有key 17 True 18 >>> a.has_key(0) 19 False 20 >>> a.items() """ 所有项的列表形式 """ 21 [(1, 2), (3, 4), ('Dicky', 19)] 22 >>> a.keys() 获取所有key 23 [1, 3, 'Dicky'] 24 >>> a.values() #获取所有有value 25 [2, 4, 19] 26 >>> a 27 {1: 2, 3: 4, 'Dicky': 19} 28 >>> a.pop(3) 删除 29 4 30 >>> a 31 {1: 2, 'Dicky': 19} 32 >>> a.setdefault(1) #如果key不存在,则创建,如果存在,则返回已存在的值且不 33 34 修改 35 2 36 >>> a.setdefault(1,4) 37 2 38 >>> a.setdefault(8,4) 39 4 40 >>> a 41 {8: 4, 1: 2, 'Dicky': 19} 42 >>> s={'www':'zzz',1:3,'Dicky':40} 43 >>> s 44 {1: 3, 'www': 'zzz', 'Dicky': 40} 45 >>> a.update(s) #更新字典,以括号里面的为准 46 >>> a 47 {1: 3, 'www': 'zzz', 'Dicky': 40, 8: 4} 48 >>> s 49 {1: 3, 'www': 'zzz', 'Dicky': 40}
除了上边哪些之外,单独说说深浅copy

浙公网安备 33010602011771号