[Bf-committers] CVS Python assert failure on shutdown?

Early Ehlinger early at respower.com
Tue Mar 20 19:53:38 CET 2007


Wow - I have to say I'm very impressed with the speed in finding the 
root cause.  Good work!

-- Early Ehlinger, President, ResPower, Inc.

Ken Hughes wrote:
> Ken Hughes wrote:
>> I *think* I tracked down the cause of this but I'm not sure I 
>> understand why it's a problem:
>> ...
>> the assert error goes away here.
>>
>> I put in some test code and verified that after calling 
>> PyDict_SetItemString() the object returned from Main_Init() has two 
>> references.
>>
>> Can anyone see something I'm missing?
>
> OK, I answered my own question.  Py_InitModule3() returns a borrowed 
> reference, so decrefing here IS a bad idea.  I'll commit a fix.



More information about the Bf-committers mailing list