Thread Previous • Date Previous • Date Next • Thread Next |
Answering your previous question about verbosity, try instant.set_logging_level("debug") also, you can do: instant.set_logging_level("info") instant.set_logging_level("warning") instant.set_logging_level("error") Also, take a look at the test test19.py which demonstrates that the memory cache does work. -- Martin 2008/9/11 Anders Logg <logg@xxxxxxxxx>: > On Thu, Sep 11, 2008 at 04:11:11PM +0200, Martin Sandve Alnæs wrote: >> 2008/9/11 Anders Logg <logg@xxxxxxxxx>: >> > On Thu, Sep 11, 2008 at 03:47:37PM +0200, Martin Sandve Alnæs wrote: >> >> Have you added __hash__ and __eq__ or __cmp__ functions to your jit >> >> object class? If not, the memory cache may not work as expected. >> > >> > I have added _hash_. What should __eq__ return? >> > >> >> Equality with other object, True or False. Hashmaps do not actually >> require unique hash keys, so objects with the same hash may be >> different. __cmp__ returns -1, 0 or +1 meaning self<other, >> self==other, self>other. Don't implement both. > > Didn't help. > > Could you add some print statement in Instant temporarily that shouts > when the in-memory cache is being used? > > -- > Anders > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFIySkBTuwUCDsYZdERAk91AJ0cIFvyJgMv8XPpn9HY8mNuL8VW0gCfWy6I > wVix/JqeaB8zbiAaY/iUq5E= > =vkp0 > -----END PGP SIGNATURE----- > >
Thread Previous • Date Previous • Date Next • Thread Next |