![]() |
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: Steven D'Aprano <steve@REMOVETHIScyber.com.au>
Date: Sat Dec 31 2005 - 13:19:41 CET
On Fri, 30 Dec 2005 21:08:29 -0800, Raymond Hettinger wrote:
> Steven D'Aprano wrote:
[snip]
> Try something like this:
Of course. The most obvious thing is the least obvious :-)
> * If cache hits are the norm, then a try/except version would be a bit
Sure, it isn't needed, but I still like to make it explicit. Call it a
-- StevenReceived on Tue Jan 3 03:28:53 2006 |