Exemplo n.º 1
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
Exemplo n.º 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
Exemplo n.º 3
0
def len(x):  # @ReservedAssignment
    print("Private built-in called with argument", repr(x))

    return _len(x)
Exemplo n.º 4
0
def len(x):  # @ReservedAssignment
    print("Private built-in called with argument", repr(x))

    return _len(x)
Exemplo n.º 5
0
def len(x):
    print x

    return _len(x)
Exemplo n.º 6
0
def len(x):
    print("Private built-in called with argument", repr(x))

    return _len(x)
Exemplo n.º 7
0
def len( x ):
    print x

    return _len(x)
Exemplo n.º 8
0
def len(x):
    print("Private built-in called with argument", repr(x))

    return _len(x)