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:名字为小写,怕是历史遗留问题吧

转载于:https://www.cnblogs.com/ywhyme/p/9006805.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值