![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Memoization and encapsulation
From: <skip@pobox.com>
Date: Sat Dec 31 2005 - 11:44:10 CET
just> I actually prefer such a global variable to the default arg
just> _cache = {}
None of the responses I've seen mention the use of decorators such as the
http://wiki.python.org/moin/PythonDecoratorLibrary
While wrapping one function in another is obviously a bit slower, you can
Skip
|