Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

        def findroot(x):
    if x.parent == x:
        return x
    else:
        return findroot(x.parent)
        


src/c/i/circuits-3.0.0.dev/tests/tools/test_tools.py   circuits(Download)
 
from circuits import Component, reprhandler
from circuits.tools import kill, inspect, findroot, tryimport
 
 
    b += c
 
    root = findroot(a)
    assert root == a
 
    root = findroot(b)
    assert root == a
 
    root = findroot(c)