Пример #1
0
    async def do_slice(value, slices, fill_with=None):
        return filters.do_slice(await
        auto_to_seq(value), slices, fill_with)


        ASYNC_FILTERS = {
            'first': do_first,
            'groupby': do_groupby,
            'join': do_join,
            'list': do_list,
            # we intentionally do not support do_last because that would be
            # ridiculous
            'reject': do_reject,
            'rejectattr': do_rejectattr,
            'map': do_map,
            'select': do_select,
            'selectattr': do_selectattr,
            'sum': do_sum,
            'slice': do_slice,
        }
Пример #2
0
async def do_slice(value, slices, fill_with=None):
    return filters.do_slice(await auto_to_seq(value), slices, fill_with)
Пример #3
0
async def do_slice(value, slices, fill_with=None):
    return filters.do_slice(await auto_to_seq(value), slices, fill_with)