[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Re: join() can't handle a QString
From:       Alberto Berti <alberto () metapensiero ! it>
Date:       2008-06-23 23:24:33
Message-ID: 878wwvpwem.fsf () lizard ! lizardnet
[Download RAW message or body]

>>>>> "Chris" == Christoph Burgmer <chrislb@gmx.de> writes:

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

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

The story probably is that the binding implements __str__ and __len__
to be compatible with print and len(), but the join() string functions
expect a string or an instance of a class which is subclass of string
which QString isn't

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic