m00nk@m00nk-desktop:~$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtCore import *
>>> s = QStringList()
>>> s.append('aaaa')
>>> s.append('bbbb')
>>> s.append('cccc')
>>> s.append('dddd')
>>> s.append('eeee')
>>> s.append('ffff')
>>> s.append('gggg')
>>> for i in xrange(0, s.count()-1): s.takeAt(i)
...
PyQt4.QtCore.QString(u'aaaa')
PyQt4.QtCore.QString(u'cccc')
PyQt4.QtCore.QString(u'eeee')
PyQt4.QtCore.QString(u'gggg')
Ошибка сегментирования
m00nk@m00nk-desktop:~$