QTextBlockUserData loses its data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipython (Ubuntu) |
Fix Released
|
Medium
|
Julian Taylor | ||
Raring |
Fix Released
|
Medium
|
Julian Taylor | ||
python-qt4 (Ubuntu) |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Raring |
Fix Released
|
High
|
Dimitri John Ledkov |
Bug Description
in pyqt4 4.10 QTextBlockUserData is broken.
see
http://
from PyQt4.QtGui import QTextDocument, QTextBlockUserData
doc=QTextDocument()
data=QTextBlock
data.value = 123
doc.firstBlock(
del data
import gc
gc.collect()
print doc.firstBlock(
AttributeError: 'QTextBlockUser
example in archive
ipython qtconsole
type:
if 1:
print 1
and you get lots of tracebacks in the terminal:
File "/usr/lib/
self.
AttributeError: 'QTextBlockUser
it also breaks ninja ide.
description: | updated |
Changed in python-qt4 (Ubuntu): | |
status: | New → Fix Committed |
assignee: | nobody → Dmitrijs Ledkovs (xnox) |
importance: | Undecided → High |
Changed in ipython (Ubuntu): | |
assignee: | nobody → Julian Taylor (jtaylor) |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in python-qt4 (Ubuntu Raring): | |
milestone: | none → ubuntu-13.04 |
In iPython ther is also: PYQT_VERSION_ STR < '4.7':
raise ImportError
if QtCore.
# PyQt 4.6 has issues with null strings returning as None
Which is also wrong: PYQT_VERSION_ STR < '4.7')"
ipython -c "import PyQt4; from PyQt4 import QtCore, QtGui, QtSvg; print(QtCore.