2016-05-04 19 views
0

私はpython組み込み関数の原理?

class staticmethod(object): 
    """ 
    .... 
    """ 
    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 

のような組み込み関数を発見したPythonのソースコードを読んだとき、私の質問はのための空のメソッドを何ですか?なぜここに書きますか?

+0

投稿を編集して詳細を追加してください。どのライブラリ/モジュールがこれですか?名前を言いなさい。 – direprobs

答えて

0

Pythonの組み込み関数の中には、C言語で書かれているものがありますが、Pythonの実装はありません。

関連する問題