On 20.04.2010 18:38, ext Mark Summerfield wrote:

Your solution seems reasonable to me. I also like the idea of using the
QVariant.Type names.

OK, nice. I can modify the draft accordingly and send an updated version for you for review.

Regarding error checking, I assume that :

     functionThatTakesAVariant(QVariant.fromInt("123"))

will raise a TypeError (in the QVariant.fromInt() call) or some other
exception? Whereas:

     functionThatTakesAVariant("123")

is fine ("123" becomes a QVariant holding a QString behind the scenes)
relying on the automatic conversion. But if you try to cheat you get a
helpful exception.

I checked PyQt's behaviour and that's exactly what happens there so I assume your assumption is good. :-)

ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to