Example #1
0
def two(i, count):
    if count == 0:
        print "%d = 0 py %d" % (i, data.x)
        return
    print "%d + %d py %d" % (i, count, data.x)
    rgo.one(i, two, count - 1)
    print "%d - %d py %d" % (i, count, data.x)
Example #2
0
File: r.py Project: autoscatto/gopy
def two(i, count):
    if count == 0:
        print "= python: 0"
        return
    print "+ python: %d" % count
    rgo.one(i, two, count - 1)
    print "- python: %d" % count
Example #3
0
def two(i, count):
    if count == 0:
        print "= python: 0"
        return
    print "+ python: %d" % count
    rgo.one(i, two, count - 1)
    print "- python: %d" % count
Example #4
0
def x2():
    data.x = 3
    rgo.one(3, two, 1)
    rgo.one(3, two, 2)
    rgo.one(3, two, 3)
Example #5
0
def x():
    data.x = 2
    rgo.one(2, two, 1)
    rgo.one(2, two, 2)
    rgo.one(2, two, 3)
Example #6
0
        print "%d = 0 py %d" % (i, data.x)
        return
    print "%d + %d py %d" % (i, count, data.x)
    rgo.one(i, two, count - 1)
    print "%d - %d py %d" % (i, count, data.x)

def x():
    data.x = 2
    rgo.one(2, two, 1)
    rgo.one(2, two, 2)
    rgo.one(2, two, 3)

def x2():
    data.x = 3
    rgo.one(3, two, 1)
    rgo.one(3, two, 2)
    rgo.one(3, two, 3)

t = threading.Thread(target=x)
t2 = threading.Thread(target=x2)

t.start()
t2.start()

rgo.one(1, two, 1)
rgo.one(1, two, 2)
rgo.one(1, two, 3)

t.join()
t2.join()
Example #7
0
File: r.py Project: autoscatto/gopy
def x():
    rgo.one(1, two, 10)
Example #8
0
def x():
    rgo.one(1, two, 10)