[ZODB-Dev] cache gc api

Chris Withers chrisw@nipltd.com
Fri, 02 Nov 2001 17:22:16 +0000


> I propose to make the following changes:
> 
>     - Change the implementation to treat 0 as "deactivate it
>       regardless of how old it is."

+1

>     - Change the implementation to provide the documented default
>       value.

0

>     - Add documentation that says you can pass a value greater than
>       196608 to achieve the effect of only removing unreachable
>       objects. 

Urm, why not just use a symbolic constant?

from x import REMOVE_UNREACHABLE

and in x:

x = []

Much more robust and explicit, IMVHO...

cheers,

Chris