Re: Memoization and encapsulation
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Memoization and encapsulation

From: Steven D'Aprano <steve@REMOVETHIScyber.com.au>
Date: Sat Dec 31 2005 - 13:21:43 CET

On Sat, 31 Dec 2005 09:23:05 +0100, Just wrote:

> There's no need to declare _cache as global, since you're not assigning
> to it. So this global isn't all that pesky after all...

It is still a global variable, with all the potential Badness thereof,
even if you don't have to declare it.

-- 
Steven.
Received on Tue Jan 3 03:28:54 2006