pyqt  

[PyQt] join() can't handle a QString

Christoph Burgmer
Mon, 23 Jun 2008 16:12:52 -0700

QString is pretty much well integrated as much as I understand. I can 
write "print QString('foo')" or "len(QString('bar'))". It will always be cast 
to the str type (btw, why not to unicode?).

Seeing today that the following wouldn't work makes me ask if that was 
forgotten or if there is a story behing it:

>>> ''.join([QString('foobar')])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sequence item 0: expected string, QString found

Chris
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt