Skip Montanaro <skip at pobox.com> writes: > >> What are the restrictions on list items? > >> > >> Only a function? > >> Only a code object? (I assume so) > >> Must the code return the original function? > >> Must the code return a code object? > > Phillip> Any callable object. May return anything. > > Must take a single argument, which itself must be a callable, right? I work from the equivalence of def f [a, b, c] (args): ... and def f(args): ... f = a(f) f = b(f) f = c(f) Hence, all wrappers *will be called with* a single argument. That argument may not be a callable (if a returns a non-callable, that's what b will get) and the return value need not be a callable. Such uses could be considered strange, however... Paul. -- This signature intentionally left blank
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4