Aaron, I don't know who you are, and I don't know what you are doing here, but this type of post with monosyllabic answers really pisses me off. I suggest you take it somewhere else, or learn to have a normal discussion. Where did you learn this type of behavior? If you think this is normal or even acceptable, well, it isn't. Also, you seem to be abusing this list for a purpose it isn't meant for. You risk being kicked off.
On Jan 24, 2008 12:36 PM, Aaron Brady firstname.lastname@example.org wrote:
+1 on prepartial in functools.
So far, I've only seen this one use case for prepartial - and I'd rather have decorator_withargs itself than prepartial. Do you have any other use cases for prepartial (from real code somewhere)?
Currently, I'm -1 on adding prepartial to functools, and +0.5 on adding something like decorator_withargs.
Are you also -1 on partial's being in functools?
Not that it matters, since it's already there, but no, I wasn't.
Good. I was. It got in.
In fact, the presence of partial is a big reason not to need prepartial
-- most existing use cases are already covered by using partial.
As Arnaud pointed out, if you restrict decorator_withargs to keyword arguments,
Thus, I don't see prepartial as really covering many new use cases.
A -> B A _____ B
Thus what again?
If you'd like to convince me otherwise, you're going to need to post some use cases from real code.
curry= partial( partial, prepartial ) 
Python-ideas mailing list Pythonemail@example.com http://mail.python.org/mailman/listinfo/python-ideas