[issue15683] add decorator for make functions partial applicable

2012-08-16 Thread Arvin Moezzi
New submission from Arvin Moezzi: I am not sure if this is the right way to do it but IMHO it would be great to have a function decorator/transformer to make functions partial applicable using functools.partial. Like from functools import partial class partial_applicable(): def

[issue15683] add decorator for make functions partial applicable

2012-08-16 Thread Arvin Moezzi
Arvin Moezzi added the comment: Or maybe even class partial_applicable(): def __call__(self, func): def __wrapper(*args, **kvargs): try: return func(*args, **kvargs) except TypeError

[issue15683] add decorator for make functions partial applicable

2012-08-16 Thread Arvin Moezzi
Arvin Moezzi added the comment: Thanks for your feedback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15683 ___ ___ Python-bugs-list mailing