(func)
| 48 | return _recursor |
| 49 | |
| 50 | def recursor1(func): |
| 51 | # for recursion with some pre-computatation; |
| 52 | co=func.func_code |
| 53 | argnames=[ co.co_varnames[i] for i in range(co.co_argcount) ] |
| 54 | def _recursor1(func_locals,**kwargs): |
| 55 | return func( *tuple([ kwargs.pop(name,func_locals[name]) |
| 56 | for name in argnames ]), **kwargs ) |
| 57 | return _recursor1 |
| 58 | |
| 59 | # examples |
| 60 |