[PyKDE] None as a string argument

Anthony Heading aheading at jpmorgan.com
Tue Sep 20 22:09:49 BST 2005


Hi,

The latest pyqt (3.15) with sip 4.3.1 seems to disallow None to be passed
into any Qt function expecting a QString.  For example, adding a line
to tut1.py:
    button.setText(None)
produced a blank button in earlier pyqt releases, but now gives an error:
    Runtime Error: cannot pass None as argument 0 in this call

Is this an intended change?

(Also, the 0-based error message is intentional, or off-by-one?)

Rgds

Anthony

This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.




More information about the PyQt mailing list