Re: [Python-Dev] tp_dealloc

2010-06-02 Thread Nick Coghlan
On 01/06/10 22:21, sm...@gmx.net wrote: 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)

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

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 : >> 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
> 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 : > 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-05-31 Thread Greg Ewing
sm...@gmx.net wrote: Now, the problem is, Python appears to read-access the deallocated memory still after tp_dealloc. It's not clear exactly what you mean by "after tp_dealloc". The usual pattern is for a type's tp_dealloc method to call the base type's tp_dealloc, which can make further refer