functional has been renamed to functools and alpha 3 was skipped

This commit is contained in:
Nick Coghlan 2006-05-29 12:49:03 +00:00
parent fa374a2c14
commit dbb8010eb7
2 changed files with 26 additions and 5 deletions

View File

@ -8,7 +8,21 @@ Type: Standards Track
Content-Type: text/x-rst Content-Type: text/x-rst
Created: 08-Feb-2003 Created: 08-Feb-2003
Python-Version: 2.5 Python-Version: 2.5
Post-History: 10-Feb-2003, 27-Feb-2003, 22-Feb-2004 Post-History: 10-Feb-2003, 27-Feb-2003, 22-Feb-2004, 28-Apr-2006
Note
====
Following the acceptance of this PEP, further discussion on python-dev and
comp.lang.python revealed a desire for several tools that operated on
function objects, but were not related to functional programming. Rather
than create a new module for these tools, it was agreed [1]_ that the
"functional" module be renamed to "functools" to reflect its newly-widened
focus.
References in this PEP to a "functional" module have been left in for
historical reasons.
Abstract Abstract
@ -100,7 +114,7 @@ provided by Scott David Daniels::
return self.fn(*(self.args + args), **d) return self.fn(*(self.args + args), **d)
(A recipe similar to this has been in the Python Cookbook for some (A recipe similar to this has been in the Python Cookbook for some
time [1]_.) time [3]_.)
Note that when the object is called as though it were a function, Note that when the object is called as though it were a function,
positional arguments are appended to those provided to the positional arguments are appended to those provided to the
@ -269,10 +283,12 @@ implementation has proven itself useful enough to be worth optimising.
References References
========== ==========
.. [1] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52549 .. [1] http://mail.python.org/pipermail/python-dev/2006-March/062290.html
.. [2] Patches 931005_, 931007_, and 931010_. .. [2] Patches 931005_, 931007_, and 931010_.
.. [3] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52549
.. _931005: http://www.python.org/sf/931005 .. _931005: http://www.python.org/sf/931005
.. _931007: http://www.python.org/sf/931007 .. _931007: http://www.python.org/sf/931007
.. _931010: http://www.python.org/sf/931010 .. _931010: http://www.python.org/sf/931010

View File

@ -38,7 +38,7 @@ Release Schedule
alpha 1: April 5, 2006 [completed] alpha 1: April 5, 2006 [completed]
alpha 2: April 27, 2006 [completed] alpha 2: April 27, 2006 [completed]
alpha 3: May 25, 2006 [planned] alpha 3: ------------- [skipped]
beta 1: June 14, 2006 [planned] beta 1: June 14, 2006 [planned]
beta 2: July 6, 2006 [planned] beta 2: July 6, 2006 [planned]
rc 1: July 27, 2006 [planned] rc 1: July 27, 2006 [planned]
@ -106,7 +106,12 @@ Possible features for 2.5
Each feature below should implemented prior to beta1 or Each feature below should implemented prior to beta1 or
will require BDFL approval for inclusion in 2.5. will require BDFL approval for inclusion in 2.5.
- Add @decorator decorator to functional, rename to functools? - Add update_wrapper function to functools (approved by BDFL)
http://mail.python.org/pipermail/python-dev/2006-May/064775.html
(Owner: Nick Coghlan - patches with tests & docs welcome, though ;)
- Add @wraps(f) decorator factory to functools?
(see comment in functools Python module)
- Modules under consideration for inclusion: - Modules under consideration for inclusion: