[issue15683] add decorator for make functions partial applicable

2012-08-16 Thread R. David Murray
R. David Murray added the comment: Thanks for your suggestion, even though I'm rejecting the suggestion as a bug tracker issue. (I should have said that at the start of my answer.) -- ___ Python tracker _

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue15683] add decorator for make functions partial applicable

2012-08-16 Thread R. David Murray
R. David Murray added the comment: YAGNI, is what I think. Or if you do need it, put it in your application. (To tell you the truth, it just looks confusing to me...it strikes me as too magical.) Regardless, this is more of a python-ideas kind of issue, so I suggest raising it there if you

[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
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 __call_