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

List:       pykde
Subject:    Re: [PyQt] Overloads in SIP
From:       Shaheed Haque <srhaque () theiet ! org>
Date:       2017-09-05 9:39:59
Message-ID: CAHAc2jdkZ2bCMES4Oeb+zkMpG2D25ZWA9_1O92i_TgrV-_t9JQ () mail ! gmail ! com
[Download RAW message or body]

On 5 September 2017 at 09:33, Phil Thompson <phil@riverbankcomputing.com> wrote:
> On 4 Sep 2017, at 10:44 pm, Shaheed Haque <srhaque@theiet.org> wrote:
>>
>> Hi,
>>
>> For these two overloads
>>
>>        int toInt() const;
>>        int toInt(bool *ok) const;
>>
>> why does SIP complain:
>>
>> sip: tmp/KHtml/dom/dom_string.sip:68: ::DOM::DOMString::toInt() has
>> overloaded functions with the same Python signature
>>
>> That seems wrong? Insights welcome.
>
> By default it is assumed that 'ok' is being used to return a value so the *Python* signature is...
>
> (int, bool) toInt()

I see, thanks.

> You either need to comment out the first overload or give one of them a different Python name.
>
> Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

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