[PyKDE] diff behave PyQt/3.7/3.8 on i.e. QColor.__eq__()

Phil Thompson phil at riverbankcomputing.co.uk
Tue Nov 11 14:02:00 GMT 2003


On Tuesday 11 November 2003 12:38 pm, kscalet wrote:
> That used to work with PyQt 3.7, but now with my new installation
> of PyQt 3.8 it no longer does:
>
> -- code fragment --
> c_sav = None
> c = QColor()
> if c != c_sav:
>     c_sav = c
> -- -- -- --
> brings:
> Traceback (..):
> ..
> RuntimeError: Cannot pass None as argument 1 in this call
>
> As I said, this code worked before. Not a big deal to work around,
> but I wonder why / what's the difference.
>
> Thank you for your ideas,
>
> Karl
>
> PS: using precompiled binaries for Windows (2000)

It's a bug which has been fixed in current snapshots.

Phil




More information about the PyQt mailing list