Python2.* object类............
1 class object: 2 """ The most base type """ 3 def __delattr__(self, name): # real signature unknown; restored from __doc__ 4 """ x.__delattr__('name') <==> del x.name """ 5 pass 6 7 def __format__(self, *args, **kwargs): # real signature unknown 8 """ default object formatter """ 9 pass 10 11 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 12 """ x.__getattribute__('name') <==> x.name """ 13 pass 14 15 def __hash__(self): # real signature unknown; restored from __doc__ 16 """ x.__hash__() <==> hash(x) """ 17 pass 18 19 def __init__(self): # known special case of object.__init__ 20 """ x.__init__(...) initializes x; see help(type(x)) for signature """ 21 pass 22 23 @staticmethod # known case of __new__ 24 def __new__(cls, *more): # known special case of object.__new__ 25 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 26 pass 27 28 def __reduce_ex__(self, *args, **kwargs): # real signature unknown 29 """ helper for pickle """ 30 pass 31 32 def __reduce__(self, *args, **kwargs): # real signature unknown 33 """ helper for pickle """ 34 pass 35 36 def __repr__(self): # real signature unknown; restored from __doc__ 37 """ x.__repr__() <==> repr(x) """ 38 pass 39 40 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 41 """ x.__setattr__('name', value) <==> x.name = value """ 42 pass 43 44 def __sizeof__(self): # real signature unknown; restored from __doc__ 45 """ 46 __sizeof__() -> int 47 size of object in memory, in bytes 48 """ 49 return 0 50 51 def __str__(self): # real signature unknown; restored from __doc__ 52 """ x.__str__() <==> str(x) """ 53 pass 54 55 @classmethod # known case 56 def __subclasshook__(cls, subclass): # known special case of object.__subclasshook__ 57 """ 58 Abstract classes can override this to customize issubclass(). 59 60 This is invoked early on by abc.ABCMeta.__subclasscheck__(). 61 It should return True, False or NotImplemented. If it returns 62 NotImplemented, the normal algorithm is used. Otherwise, it 63 overrides the normal algorithm (and the outcome is cached). 64 """ 65 pass 66 67 __class__ = None # (!) forward: type, real value is '' 68 __dict__ = {} 69 __doc__ = '' 70 __module__ = ''
ps:名字为小写,怕是历史遗留问题吧