On Sep 10, 2008, at 2:11 PM, C. Titus Brown wrote:
> That's odd -- perhaps try starting from scratch? Is the __weakref__ > attribute present on NLMSASlice? If so, then it's probably the Pyrex > version. > > If you want to keep supporting the old Pyrex -- reasonable enough! > -- I > can revert that patch and go back to the slightly messier previous > patch > which solves the memory leak AND is compatible with older versions of > Pyrex. Let me know. Hi Titus, I think this is why I gave up on Pyrex's advertised __weakref__ support originally -- it didn't work, at least on my Mac, and it *still* doesn't. Rather than try to debug Pyrex (version issues?), I've switched to using your "intermediate object" approach, and that works fine. I.e. I added an attribute to NLMSASlice called "weakestLink"; I save a generic Python object there, and hand that reference to saveCache() as the owner argument. This passes your cache cleanup test (on my mac) just the way I expect your original version did... - Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pygr-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pygr-dev?hl=en -~----------~----~----~----~------~----~------~--~---
