[PyQt] SIP newbie question 2

Johan Råde johan.rade at gmail.com
Wed Jul 6 16:21:19 BST 2011


I have a class that defines the methods

  int size() const;
  const char* operator[int pos] const;
  operator bool() const;

I want to rename these methods

  __len__
  __getitem__
  __nonzero__

when I  export them.

With SWIG I can do that with the %rename directive.
How do I do that with SIP?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110706/a78057aa/attachment.html>


More information about the PyQt mailing list