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.