On Wed, Aug 05, 2009 at 12:14:12PM -0700, Christopher Lee wrote:
-> On Aug 5, 2009, at 9:55 AM, C. Titus Brown wrote:
-> 
-> > It's not a Pyrex problem, at least not by my understanding of how
-> > garbage collection works in Python.
-> 
-> There are two general areas we could look in.  The first is NLMSA and  
-> other classes in cnestedlist.

OK, some more details... there seems to be something going on with the
NLMSA.seqs attribute / NLMSASeqDict class.

--

In class NLMSA, the __iadd__ function increases the refcount of
'self.seqs' by 2.

However, the only function it calls is 'self.seqs.saveSeq', which only
adds a single refcount.

This makes me wonder if it is, indeed, a Pyrex bug...

--

Another factoid: if you use an in-memory NLMSA (mode=memory), you don't
have the same buildup of refcounts.  Why this difference!?

--

Very frustrating to track this stuff down ;).

cheers,
--titus
-- 
C. Titus Brown, [email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to