K
kanchy kang
Hi,all
as we know, we can override the operator of one object(for example __eq__).
my question is, how to override the basic operator?
for example,
for any object comparison operator(including litterals),
for example,
a = "123"
b = "321"
the boolean equation a == b,
i need override "==" operator like this:
first display a and b
then return real boolean result (a == b).
thanks!
-----------------------------------------------
Best regards,
kangzz
mailto:[email protected]
Tel : 021-65407754
MP: 13916928084
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
as we know, we can override the operator of one object(for example __eq__).
my question is, how to override the basic operator?
for example,
for any object comparison operator(including litterals),
for example,
a = "123"
b = "321"
the boolean equation a == b,
i need override "==" operator like this:
first display a and b
then return real boolean result (a == b).
thanks!
-----------------------------------------------
Best regards,
kangzz
mailto:[email protected]
Tel : 021-65407754
MP: 13916928084
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/