[PyKDE] Printing empty QStrings
Boudewijn Rempt
bsarempt at rempt.xs4all.nl
Wed Nov 1 11:49:10 GMT 2000
On Wed, 1 Nov 2000, Phil Thompson wrote:
> This is sensible, but can't be achieved. It is Python raising the
> exception (not PyQt) because PyQt is returning the None object instead
> of a string object. PyQt could return a string object containing "None"
> (although "null" would be better) but then 'print QString()' and 'print
> QString("None")' would do exactly the same thing.
>
I found that out, too, after a bit of hacking around. I think it might
be best to keep the current behavious, but document it explicitly.
Shall I write a paragraph or two for in the PyQt documentation?
Boudewijn Rempt | http://www.valdyas.org
More information about the PyQt
mailing list