Tuple method
1 Lass Tuple (object):2 """3 tuple (), empty tuple4 Tuple (iterable), tuple initialized from iterable ' s items5 6 If The argument is a tuple, the return value is the same object.7 """8 defCount (self, value):#real signature unknown; restored from __doc__9 """T.count (value), integer--return number of occurrences of value"""Ten return0 One A defIndex (self, value, Start=none, Stop=none):#real signature unknown; restored from __doc__ - """ - T.index (value, [Start, [stop]]), integer-return first index of value. the raises valueerror If the value is not present. - """ - return0 - + def __add__(Self, y):#real signature unknown; restored from __doc__ - """x.__add__ (y) <==> x+y""" + Pass A at 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""" in Pass - to def __getattribute__(self, name):#real signature unknown; restored from __doc__ + """x.__getattribute__ (' name ') <==> x.name""" - Pass the * def __getitem__(Self, y):#real signature unknown; restored from __doc__ $ """x.__getitem__ (y) <==> X[y]"""Panax Notoginseng Pass - the def __getnewargs__(Self, *args, **kwargs):#Real Signature Unknown + Pass A the def __getslice__(Self, I, j):#real signature unknown; restored from __doc__ + """ - x.__getslice__ (i, J) <==> X[i:j] $ $ Use of negative indices are not supported. - """ - Pass the - def __ge__(Self, y):#real signature unknown; restored from __doc__Wuyi """x.__ge__ (y) <==> x>=y""" the Pass - Wu def __gt__(Self, y):#real signature unknown; restored from __doc__ - """x.__gt__ (y) <==> x>y""" About Pass $ - def __hash__(self):#real signature unknown; restored from __doc__ - """x.__hash__ () <==> hash (x)""" - Pass A + def __init__(Self, seq= ()):#known special case of tuple.__init__ the """ - tuple (), empty tuple $ Tuple (iterable), tuple initialized from iterable ' s items the the If The argument is a tuple, the return value is the same object. the # (copied from class Doc) the """ - Pass in the def __iter__(self):#real signature unknown; restored from __doc__ the """x.__iter__ () <==> iter (x)""" About Pass the the def __len__(self):#real signature unknown; restored from __doc__ the """x.__len__ () <==> len (x)""" + Pass - the def __le__(Self, y):#real signature unknown; restored from __doc__Bayi """x.__le__ (y) <==> x<=y""" the Pass the - def __lt__(Self, y):#real signature unknown; restored from __doc__ - """x.__lt__ (y) <==> x<y""" the Pass the the def __mul__(Self, N):#real signature unknown; restored from __doc__ the """x.__mul__ (n) <==> x*n""" - Pass the the@staticmethod#known case of __new__ the def __new__(S, *more):#real signature unknown; restored from __doc__94 """t.__new__ (S, ...)-A new object with type S, a subtype of T""" the Pass the the def __ne__(Self, y):#real signature unknown; restored from __doc__98 """x.__ne__ (y) <==> x!=y""" About Pass - 101 def __repr__(self):#real signature unknown; restored from __doc__102 """x.__repr__ () <==> repr (x)"""103 Pass104 the def __rmul__(Self, N):#real signature unknown; restored from __doc__106 """x.__rmul__ (n) <==> n*x"""107 Pass108 109 def __sizeof__(self):#real signature unknown; restored from __doc__ the """t.__sizeof__ ()--size of T in memory, in bytes"""111 Passtuple
Python tuple method