[PyKDE] Core dump and QString

Phil Thompson phil at river-bank.demon.co.uk
Wed Apr 19 00:55:09 BST 2000

Pete Ware wrote:
> Phil Thompson <phil at river-bank.demon.co.uk> writes:
> > No.  None is mapped to NULL, it is not mapped to "the default value".
> Ok.  Sorry, I keep having trouble with QString's.  I think it's
> because prior to Qt 2.0/PyQt 0.11 I'd gotten used to python strings
> working a little differently -- like passing None when it really
> should have been an empty string or using len () on the result from
> QMultiLineEdit.text().  It's always tough to go from being a slob to
> being precise.
> --pete

I could make it slightly easier by testing the pointers for NULL before
dereferencing them. At least you'd get an error message rather than a


More information about the PyQt mailing list