[Python-Dev] tp_dealloc

2010-06-01 Thread smarv
My tp_dealloc method (of non-subtypable type) calls the freeMem-method of a memory manager (this manager was also used for the corresponding allocation). This freeMem-method deallocates and modifies the memory, which is a valid action, because after free, the memory-manager has ownership of th

[Python-Dev] tp_dealloc

2010-06-01 Thread smarv
Sorry, I wrote tp_alloc in last post, it should be always tp_dealloc: My tp_dealloc method (of non-subtypable type) calls the freeMem-method of a memory manager (this manager was also used for the corresponding allocation). This freeMem-method deallocates and modifies the memory, which is a val

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d'Arc
2010/6/1 : > Sorry, I wrote tp_alloc in last post, it should be always tp_dealloc: > > My tp_dealloc method (of non-subtypable type) calls the freeMem-method > of a memory manager (this manager was also used for the corresponding > allocation). > This freeMem-method deallocates and modifies the m

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread smarv
> This said, there may be a bug somewhere, but what do you want us to look > at? > Do you have a case that we could reproduce and investigate? > > -- > Amaury Forgeot d'Arc Thank you, I'm not a C-Developer, but still I have one more detail: I call py_decRef( pyObj) of dll (version 3.1.1), ( w

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d'Arc
2010/6/1 : >> This said, there may be a bug somewhere, but what do you want us to look >> at? >> Do you have a case that we could reproduce and investigate? >> >> -- >> Amaury Forgeot d'Arc > > Thank you, I'm not a C-Developer, > but still I have one more detail: > > I call py_decRef( pyObj) of dl

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread smarv
> Without further information, I cannot consider this as a problem in > Python. > I know other extension modules that manage memory in their own way, and > work. > It's more probably an issue in the code of your type. > > -- > Amaury Forgeot d'Arc Ok, thank you, but I'm still hoping, someone cou

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d'Arc
2010/6/1 : >> Without further information, I cannot consider this as a problem in >> Python. >> I know other extension modules that manage memory in their own way, and >> work. >> It's more probably an issue in the code of your type. >> >> -- >> Amaury Forgeot d'Arc > > Ok, thank you, but I'm stil