Operator Overloading

Gurpreet Sachdeva redhackgp at rediffmail.com
Mon Aug 1 01:12:47 EDT 2005


  
Hi,

Is there any provision in python which allows me to make my own operators?

My problem is that I need to combine two dictonaries with their keys and I don't want to use any of the existing operators like '+','-','*'.
So is there a way I can make '**' or '~' as my operators to add two dictonaries? If not which all operators can I overoad?

Thanks,
Garry

http://garrythegambler.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050801/a41c7044/attachment.html>


More information about the Python-list mailing list