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

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

src/m/p/mpdc-HEAD/mpdc/libs/parser.py   mpdc(Download)
        c_song = mpd.get_current_song()
        if c_song is not None:
            p[0] = OrderedSet(mpd.find('artist',
                                       mpd.get_tag(c_song, 'artist')))
    elif p[1] == 'B':
            artists = lastfm.search_artists(pattern)
        for artist in artists:
            p[0] |= mpd.find('artist', artist)
    elif name == 'lastfm_b':
        p[0] = OrderedSet()
        p[0] = mpd.set_sort(p[0])
    elif exact:
        p[0] = OrderedSet(mpd.find(name, pattern))
    else:
        p[0] = OrderedSet(mpd.search(name, pattern))
            songs = []
            for artist in r_artists:
                songs.extend(mpd.find('artist', artist))
            p[0] = OrderedSet([song for song in p[1] if song in songs])
 
                if not limit:
                    break
                matched_songs = mpd.find('artist', artist)
                if not include:
                    matched_songs = OrderedSet(matched_songs) - p[1]