[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] None as a string argument
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2005-09-21 0:06:42
Message-ID: 069901c5be40$5883bc60$264d2697 () bagio
[Download RAW message or body]

Anthony Heading <aheading@jpmorgan.com> wrote:

> 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


Yes. Allowing None as a QString breaks the idea that None almost maps 1:1 to
NULL in C++. Also it has the nasty side-effects of not allowing to disambiguate
overloads in some cases
(http://mats.imk.fraunhofer.de/pipermail/pykde/2005-April/010108.html).

Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic