[wxPython] wxPoint overloading

Does python support operator overloading?

···

-----Original Message-----
From: nw_moriarty Last Name [mailto:nw_moriarty@my-deja.com]
Sent: Wednesday, October 18, 2000 1:20 PM
To: wxpython-users@lists.sourceforge.net
Subject: [wxPython] wxPoint overloading

It would be very convenient if instances of wxPoint could be
added and subtracted.

Nigel

------------------------------------------------------------
--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Does python support operator overloading?

Yep, you can give a class a __add__ method for example.

> It would be very convenient if instances of wxPoint could be
> added and subtracted.

I'll try to get it in for this release.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users