[PyKDE] Printing empty QStrings
Phil Thompson
phil at river-bank.demon.co.uk
Wed Nov 1 21:25:01 GMT 2000
Andrew Kuchling wrote:
>
> On Wed, Nov 01, 2000 at 02:06:35PM +0100, Johannes Sixt quoted someone:
> >>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.
>
> So what? print None and print "None" produce exactly the same thing,
> too. A null QString and a QString of length 0 seem like very
> different things, and not interchangeable ones.
repr(None) and repr("None") don't do the same thing.
Phil
More information about the PyQt
mailing list