Let's say I have a class that has a member called data which is a list.
I want to be able to initialize the class with, for example, a filename (which contains data to initialize the list) or with an …
Possible Duplicates:
Python: defining my own operators?
Rules of thumb for when to use operator overloading in python
Is it possible to overload operators in Python? If so, can one define new operators, such as ++ and <<?