Ugra Dániel <daniel.u...@gmail.com> added the comment:

Currently, the closest functionality I can think of (using standard library 
functions only):

@functools.partial(lambda func: functools.wraps(func)(lambda *args, **keywords: 
list(func(*args, **keywords))))

Or without proper wrapping:

@functools.partial(lambda func: lambda *args, **keywords: list(func(*args, 
**keywords)))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38940>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to