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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
<comment-ja>
???????????????????????

@param dt: ??
@type dt: dict
@return: ??????????????
@rtype: array
</comment-ja>
<comment-en>
Searches the dictionary for a given value and returns the corresponding key.(more...)

        def dict_search(search_key, dt):
    """
    ???????????????????????

    @param dt: ??
    @type dt: dict
    @return: ??????????????
    @rtype: array
    
    
    Searches the dictionary for a given value and returns the corresponding key.
    
    """
    def map_find(_x, _y):
        if _y == search_key:
            return _x
    def except_None(_z):
        return _z <> None
    rlist = map(map_find, dt.keys(), dt.values())
    return filter(except_None, rlist)
        


src/k/a/karesansui-HEAD/karesansui/gadget/guest.py   karesansui(Download)
from karesansui.lib.const import XEN_KEYMAP_DIR, KVM_KEYMAP_DIR, KVM_BRIDGE_PREFIX
 
from karesansui.lib.utils import comma_split, \
     generate_mac_address, is_param, \
     next_number, generate_uuid, string_from_uuid, uniq_sort, \
 
                    for name in sorted(uri_guests_name.values(),key=str.lower):
                        for uuid in dict_search(name,uri_guests_name):
                            uri_guests.append(MergeGuest(uri_guests_info[uuid]["model"], uri_guests_kvg[uuid]))
                            uri_guests_status[uuid]  = uri_guests_info[uuid]['virt'].status()