Author eckhardt
Recipients Alexander.Belopolsky, Christophe Simonis, anacrolix, belopolsky, eckhardt, ironfroggy, jackdied, jcea, r.david.murray, rhettinger, ssadler
Date 2013-02-25.14:19:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is at least one thing that is missing in the patch, it lacks the necessary tests. The demonstrates the issue, it could be used as a base. However, even then, there is still one thing that is problematic: The fact that partial() returns something that behaves like a static method is documented and changing that is not backward compatible.

I still think that something like this should become part of Python though. Jack Diederich argues that you can use lambda to achieve the same, but that is not always true. If you want to bind an argument to the current value of a variable instead of a constant, lambda fails. You need the closure created by a function call to bind those variables inside a local function. Having a dedicated function for that is IMHO preferable to people copying the Python-only equivalent of partial() to achieve the same effect or even inventing their own.
Date User Action Args
2013-02-25 14:19:15eckhardtsetrecipients: + eckhardt, rhettinger, jcea, belopolsky, ironfroggy, jackdied, Christophe Simonis, ssadler, r.david.murray, Alexander.Belopolsky, anacrolix
2013-02-25 14:19:14eckhardtsetmessageid: <>
2013-02-25 14:19:14eckhardtlinkissue4331 messages
2013-02-25 14:19:14eckhardtcreate