Thanks for the debug modes in functional programing! Everything functional is
true in CS at least in the theroy!
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Oct 24, 2011 at 3:29 PM, Andrew Berg wrote:
> I want to create a decorator with two different (but very similar)
> versions of the wrapper function, but without copying giant chunks of
> similar code. The main difference is that one version takes extra
> parameters.
>
> def test_dec(func,
On Mon, 24 Oct 2011 16:29:25 -0500, Andrew Berg wrote:
> I want to create a decorator with two different (but very similar)
> versions of the wrapper function, but without copying giant chunks of
> similar code. The main difference is that one version takes extra
> parameters.
>
> def test_dec(fu
Guido wrote an article on a quick and easy multimethod implementation
using a decorator:
http://www.artima.com/weblogs/viewpost.jsp?thread=101605
--
http://mail.python.org/mailman/listinfo/python-list
I want to create a decorator with two different (but very similar)
versions of the wrapper function, but without copying giant chunks of
similar code. The main difference is that one version takes extra
parameters.
def test_dec(func, extra=False):
if extra:
def wrapper(ex_p