[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] SIP Support for C++ Operators and Exceptions
From: "Paul F. Kunz" <Paul_Kunz () SLAC ! Stanford ! EDU>
Date: 2003-07-25 16:21:28
[Download RAW message or body]
>>>>> On Fri, 25 Jul 2003 16:30:01 +0100, Phil Thompson <phil@riverbankcomputing.co.uk> said:
>> > What if you implement __str__() for your exception class?
>>
>> I suppose you mean to implement this in the .sip file. Can you
>> point to an example of doing this in the PyQt sources?
> grep __str__ *.sip => qbytearray.sip, qcstring.sip, qstring.sip
> The important bits are that "sipCpp" will be a pointer to your
> exception class instance and you should return a Python string or
> Unicode object.
Got it to work. Thanks!
_______________________________________________
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