Update PEP 309 and mark as final (checked-in to cvs).

This commit is contained in:
Raymond Hettinger 2005-02-28 19:53:29 +00:00
parent 2d988b982c
commit f72cb1fe04
2 changed files with 17 additions and 4 deletions

View File

@ -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

View File

@ -3,11 +3,11 @@ Title: Partial Function Application
Version: $Revision$
Last-Modified: $Date$
Author: Peter Harris <scav@blueyonder.co.uk>
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
==========