|
2 | 2 |
|
3 | 3 | __all__ = ['ifnone', 'maybe_attr', 'basic_repr', 'get_class', 'mk_class', 'wrap_class', 'ignore_exceptions', |
4 | 4 | 'exec_local', 'Inf', 'in_', 'lt', 'gt', 'le', 'ge', 'eq', 'ne', 'add', 'sub', 'mul', 'truediv', 'is_', |
5 | | - 'is_not', 'in_', 'true', 'stop', 'gen', 'chunked', 'AttrDict', 'dict2obj', 'with_cast', 'store_attr', |
6 | | - 'attrdict', 'properties', 'camel2snake', 'snake2camel', 'class2attr', 'hasattrs', 'setattrs', 'ShowPrint', |
7 | | - 'Int', 'Str', 'Float', 'tuplify', 'detuplify', 'replicate', 'uniqueify', 'setify', 'merge', 'is_listy', |
8 | | - 'range_of', 'groupby', 'last_index', 'shufflish', 'IterLen', 'ReindexCollection', 'num_methods', |
9 | | - 'rnum_methods', 'inum_methods', 'fastuple', 'trace', 'compose', 'maps', 'partialler', 'mapped', |
10 | | - 'instantiate', 'using_attr', 'Self', 'Self', 'remove_patches_path', 'bunzip', 'join_path_file', 'urlread', |
11 | | - 'urljson', 'run', 'do_request', 'sort_by_run', 'PrettyString', 'round_multiple', 'even_mults', 'num_cpus', |
12 | | - 'add_props', 'ContextManagers', 'set_num_threads', 'ProcessPoolExecutor', 'ThreadPoolExecutor', 'parallel', |
13 | | - 'run_procs', 'parallel_gen'] |
| 5 | + 'is_not', 'in_', 'true', 'gen', 'chunked', 'AttrDict', 'dict2obj', 'with_cast', 'store_attr', 'attrdict', |
| 6 | + 'properties', 'camel2snake', 'snake2camel', 'class2attr', 'hasattrs', 'setattrs', 'ShowPrint', 'Int', 'Str', |
| 7 | + 'Float', 'tuplify', 'detuplify', 'replicate', 'uniqueify', 'setify', 'merge', 'is_listy', 'range_of', |
| 8 | + 'groupby', 'last_index', 'shufflish', 'IterLen', 'ReindexCollection', 'num_methods', 'rnum_methods', |
| 9 | + 'inum_methods', 'fastuple', 'trace', 'compose', 'maps', 'partialler', 'mapped', 'instantiate', 'using_attr', |
| 10 | + 'Self', 'Self', 'remove_patches_path', 'bunzip', 'join_path_file', 'urlread', 'urljson', 'run', 'do_request', |
| 11 | + 'sort_by_run', 'PrettyString', 'round_multiple', 'even_mults', 'num_cpus', 'add_props', 'ContextManagers', |
| 12 | + 'set_num_threads', 'ProcessPoolExecutor', 'ThreadPoolExecutor', 'parallel', 'run_procs', 'parallel_gen'] |
14 | 13 |
|
15 | 14 | # Cell |
16 | 15 | from .imports import * |
@@ -142,11 +141,6 @@ def true(*args, **kwargs): |
142 | 141 | "Predicate: always `True`" |
143 | 142 | return True |
144 | 143 |
|
145 | | -# Cell |
146 | | -def stop(e=StopIteration): |
147 | | - "Raises exception `e` (by default `StopException`)" |
148 | | - raise e |
149 | | - |
150 | 144 | # Cell |
151 | 145 | def gen(func, seq, cond=true): |
152 | 146 | "Like `(func(o) for o in seq if cond(func(o)))` but handles `StopIteration`" |
|
0 commit comments