コード例 #1
0
ファイル: test_iterlen.py プロジェクト: Alex-CS/sonify
def len(obj):
    try:
        return _len(obj)
    except TypeError:
        try:
            # note: this is an internal undocumented API,
            # don't rely on it in your own programs
            return obj.__length_hint__()
        except AttributeError:
            raise TypeError
コード例 #2
0
def len(obj):
    try:
        return _len(obj)
    except TypeError:
        try:
            # note: this is an internal undocumented API,
            # don't rely on it in your own programs
            return obj.__length_hint__()
        except AttributeError:
            raise TypeError
コード例 #3
0
ファイル: BuiltinOverload.py プロジェクト: 601040605/Nuitka
def len(x):  # @ReservedAssignment
    print("Private built-in called with argument", repr(x))

    return _len(x)
コード例 #4
0
ファイル: BuiltinOverload.py プロジェクト: zeppelinen/Nuitka
def len(x):  # @ReservedAssignment
    print("Private built-in called with argument", repr(x))

    return _len(x)
コード例 #5
0
def len(x):
    print x

    return _len(x)
コード例 #6
0
ファイル: BuiltinOverload.py プロジェクト: zhangf911/Nuitka
def len(x):
    print("Private built-in called with argument", repr(x))

    return _len(x)
コード例 #7
0
ファイル: BuiltinOverload.py プロジェクト: ballacky13/Nuitka
def len( x ):
    print x

    return _len(x)
コード例 #8
0
ファイル: BuiltinOverload.py プロジェクト: Wkryst/Nuitka
def len(x):
    print("Private built-in called with argument", repr(x))

    return _len(x)