RE: [PyQt] SIP, multiple constructors and exceptions

2008-05-19 Thread Andrew Perella
t: Re: [PyQt] SIP, multiple constructors and exceptions On Wednesday 14 May 2008 14:44:19 Andrew Perella wrote: > When a class is wrapped with multiple constructors, the generated sip > binding code does not raise an exception if the python calling code does > not provide matching arguments.

Re: [PyQt] SIP, multiple constructors and exceptions

2008-05-15 Thread Phil Thompson
On Wednesday 14 May 2008 14:44:19 Andrew Perella wrote: > When a class is wrapped with multiple constructors, the generated sip > binding code does not raise an exception if the python calling code does > not provide matching arguments. > > Is this by design? Yes - as far as the code you quote is

[PyQt] SIP, multiple constructors and exceptions

2008-05-14 Thread Andrew Perella
When a class is wrapped with multiple constructors, the generated sip binding code does not raise an exception if the python calling code does not provide matching arguments. Is this by design? Eg: extern "C" {static void *init_CutScenePythonState(sipWrapper *, PyObject *, sipWrapper **