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

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

src/s/k/skdb-HEAD/doc/proposals/package_play.py   skdb(Download)
screw.setup(length="4mm")
#not sure about the skdb.options method
possibilities2 = skdb.options(screw, bearings) #or (bearings, screw)
#print out the possibilities that have a certain score
for option in possibilities2:
block.setup(num_holes=4,num_pegs=16)
#figure out what it can connect to
possible_connections = skdb.options(block, legos)
 
#the following may be silly
#make sure all of these legos are at least once compatible
for lego1 in legos:
    for lego2 in legos:
        assert len(skdb.options(lego1,lego2)) > 0, "all legos must at least be compatible once with all other legos"