[PyKDE] Model indexes and internal pointers

Andreas Pakulat apaku at gmx.de
Mon Jul 17 21:59:28 BST 2006


On 17.07.06 22:00:41, Arve Knudsen wrote:
> Ok, I found the original thread. There is no explanation as to why no
> extra reference is kept however.

I don't know too much about python refcounting, but I think one problem
could be what to do if the model index disappears. Also decrease the
reference count? This could lead to a problem if "something" else still
needs the object... Phil needs to answer this.

> There might be a good reason for this
> behaviour, but it does represent a rather nasty pitfall.

Well, that's probably a reason why it was introduced so late, you had to
use internalId before. 

Andreas

-- 
You had some happiness once, but your parents moved away, and you had to
leave it behind.




More information about the PyQt mailing list