Memoization and encapsulation

Steven D'Aprano steve at REMOVETHIScyber.com.au
Sat Dec 31 07:21:43 EST 2005


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.




More information about the Python-list mailing list