[Python-Dev] refleaks and caches (original) (raw)
Brett Cannon brett at python.org
Mon Jan 28 02:33:05 CET 2008
- Previous message: [Python-Dev] refleaks and caches
- Next message: [Python-Dev] refleaks and caches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 27, 2008 3:37 PM, Christian Heimes <lists at cheimes.de> wrote:
Phillip J. Eby wrote: > Expose an API to clear the cache, and clear it at shutdown? It > should probably be part of interpreter shutdown anyway.
Good point. I've implemented PyTypeClearCache and exposed it via sys.cleartypecache(). The function is called during finalization, too.
Ignoring whether this is the right thing to do, should this be in sys or in gc?
-Brett
- Previous message: [Python-Dev] refleaks and caches
- Next message: [Python-Dev] refleaks and caches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]