![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archive[ANNOUNCE]: functional 0.6 released
From: Collin Winter <collinw@gmail.com>
Date: Thu Apr 27 2006 - 18:26:20 CEST
Hello all,
I have released version 0.6 of my functional module, a collection of
Two version of the release are available: one is written in pure
Where to get it:
functional is available from the project's website at
http://oakwinter.com/code/functional/download/
and from the Python Package Index at
http://cheeseshop.python.org/pypi/functional.
Both source tarballs and Python Eggs are available for both the pure
Release Notes
+ flip will now reverse all non-keyword arguments, as opposed to
+ functional.compose now comes with an optional unpack parameter to
The unpack parameter means that you can now do something like this with compose:
>>> f(*g(*arg,**kw))
i.e., automatically unpacking g's return value and passing the result to f.
To get this functionality, you'd write something like:
>>> compose(f, g, unpack=True)(*args, **kwargs)
This was impossible with functional 0.5.
+ Weakref support has been added to flip and compose objects in the C version.
+ Sundry performance improvements for the C implementation.
As always, feedback welcome!
Collin Winter
|