#10 Add weakref support to psyco.compact

open
nobody
5
2008-12-16
2008-12-16
Daniel Stutzbach
No

The psyco.compact documentation states the following:

Weak references to instances are not allowed. (Please write me if you would like me to remove this limitation.)

I'm writing to request you remove that restriction. :-)

I have a home-brewed cache that I use to store data grabbed from a database backend. The cache uses (among other things) a weakref dictionary so that objects are not reloaded from the database if anything else in Python is still it. I'd like to use psyco.compact so each object uses as little memory as possible.

Discussion

  • Sorry, I am too busy to have spare time for Psyco any more. Try asking Christian Tismer, tough. <tismer@stackless.com>

    Armin Rigo