diff --git a/pep-0000.txt b/pep-0000.txt index e65b00dca..668ea73ef 100644 --- a/pep-0000.txt +++ b/pep-0000.txt @@ -63,7 +63,6 @@ Index by Category Accepted PEPs (accepted; may not be implemented yet) - SA 309 Partial Function Application Harris SA 328 Imports: Multi-Line and Absolute/Relative Aahz Open PEPs (under consideration) @@ -168,6 +167,7 @@ Index by Category SF 293 Codec Error Handling Callbacks Dörwald SF 305 CSV File API Montanaro, et al SF 307 Extensions to the pickle protocol GvR, Peters + SF 309 Partial Function Application Harris SF 311 Simplified GIL Acquisition for Extensions Hammond SF 318 Decorators for Functions and Methods Smith, et al IF 320 Python 2.4 Release Schedule Warsaw, et al @@ -343,7 +343,7 @@ Numerical Index I 306 How to Change Python's Grammar Hudson SF 307 Extensions to the pickle protocol GvR, Peters SR 308 If-then-else expression GvR, Hettinger - SA 309 Partial Function Application Harris + SF 309 Partial Function Application Harris S 310 Reliable Acquisition/Release Pairs Hudson, Moore SF 311 Simplified GIL Acquisition for Extensions Hammond S 312 Simple Implicit Lambda Suzi, Martelli diff --git a/pep-0309.txt b/pep-0309.txt index 168db4986..8415180bc 100644 --- a/pep-0309.txt +++ b/pep-0309.txt @@ -3,11 +3,11 @@ Title: Partial Function Application Version: $Revision$ Last-Modified: $Date$ Author: Peter Harris -Status: Accepted +Status: Final Type: Standards Track Content-Type: text/x-rst Created: 08-Feb-2003 -Python-Version: 2.4 +Python-Version: 2.5 Post-History: 10-Feb-2003, 27-Feb-2003, 22-Feb-2004 @@ -25,6 +25,19 @@ partial(). An implementation has been submitted to SourceForge [2]_. +Acceptance +========== + +Patch #941881 was accepted and applied in 2005 for Py2.5. It is +essentially as outlined here, a partial() type constructor binding +leftmost positional arguments and any keywords. The partial object has +three read-only attributes func, args, and keywords. Calls to the partial +object can specify keywords that override those in the object itself. + +There is a separate and continuing discussion of whether to modify the +partial implementation with a __get__ method to more closely emulate +the behavior of an equivalent function. + Motivation ==========