Hi Phil,

I'm trying to expose a global operator function through SIP. The first argument is not an object wrapped by SIP, but I don't really care: it would be sufficient if it was possible to call it from Python as a normal function call. I tried this:

void operator<<(A& a, B& b) /PyName=foobar/;

but it doesn't work because SIP generates this code:

  __lshift__(*a0, *a1);

It would work if it generated this:

  operator<<(*a0, *a1);

Does this make sense? Is it a simple fix that I can do myself?

Thanks!
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to