Ejemplo n.º 1
0
def main():
    for k in range(10):
        print f(g(k))
    print A().h(8)
    # Real test.
    bobj = B()
    for k in range(10000):
        x = random.random()
        y = bobj.h(x)
Ejemplo n.º 2
0
from b import A
import c.f

def f(x, y):
    """
    :type x: int
    :type y: int
    :rtype: c.f.D
"""
    # TODO: A should collide with c.f.D()
    return A()

# TODO: the string arguments here should collide with the 'int' in the docstring
# and produce an error.
x = f("", "")

# should work fine
x.b()

# should report an error
x.c()
Ejemplo n.º 3
0
def f():
    b.init()
    c.init()
    b.f()
    c.f()
    return
Ejemplo n.º 4
0
from c import f

print(f())