[Python-Dev] Problems with the Python Memory Manager

Ronald Oussoren ronaldoussoren at mac.com
Thu Nov 17 07:06:02 CET 2005


On 17-nov-2005, at 3:15, Travis Oliphant wrote:

> Jim Jewett wrote:
>
>>
>
>> (2)  Is he allocating new _types_, which I think don't get properly
>>
>> collected.
>>
>>
>
> Bingo.  Yes, definitely allocating new _types_ (an awful lot of  
> them...)
> --- that's what the "array scalars" are: new types created in C.

Do you really mean that someArray[1] will create a new type to represent
the second element of someArray? I would guess that you create an
instance of a type defined in your extension.

Ronald



More information about the Python-Dev mailing list