is it an intended behaviour, that
### -- code --
from qt import *
class Test:
def __init__(self):
self.str = QStringList.split(".", "test.tst")[0]
def test(self):
print self.str
### -- code --segfaults? It is obvious that self.str does not "steal" a reference, and that can be easily circumvented by putting QStringList(....)[0] into a QString constructor, but I do think that this behaviour is not very intuitive.
The operator[](*) functions of QStringList return sipMapCppToSelf(...), is it possible to call Py_INCREF on them? Or is it impossible due to the implementation of QStringList on C++ level?
thanks for your help
Torsten
--
Torsten Marek <[EMAIL PROTECTED]>
ID: A244C858 -- fingerprint 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
www.keyserver.net -- wwwkeys.eu.pgp.net
< information must flow >
pgp00000.pgp
Description: PGP signature
