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

Christoph Burgmer chrislb at gmx.de
Tue Jun 24 00:19:01 BST 2008


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


More information about the PyQt mailing list