>> Can these operators be overloaded? > > Yes. With the caveat of the "=" mentioned in the subject-line (being different from "==")...I haven't found any way to override assignment in the general case. There might be some oddball way to do it via property() but AFAIK, this only applies to properties of objects, not top-level names/variables. I'd love to know if there's some workaround for this though...
-tkc -- http://mail.python.org/mailman/listinfo/python-list