Re: [PyKDE] SIP: adding code to methods?

2006-03-22 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: - I was thinking of defining a common utility function with %TypeCode, and then calling it for each method. How can I define C++ code which is executed after the method invokation? I don't want to use %MethodCode because I don't want to rewrite the

Re: [PyKDE] SIP: adding code to methods?

2006-03-22 Thread Phil Thompson
On Wednesday 22 March 2006 1:47 pm, Giovanni Bajo wrote: Phil Thompson [EMAIL PROTECTED] wrote: - I was thinking of defining a common utility function with %TypeCode, and then calling it for each method. How can I define C++ code which is executed after the method invokation? I don't

Re: [PyKDE] SIP: adding code to methods?

2006-03-21 Thread Phil Thompson
On Tuesday 21 March 2006 2:22 pm, Giovanni Bajo wrote: Hello, I'm wrapping a C++ class which is defined like this: class Foo { public: [ many methods that can fail...] int Error(); }; The idea is that instead of returning error codes, the C++ methods silenty succeed, and