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
ECTED]>
To: python-list@python.org
Subject: Re: May i customize basic operator (such as 1==3)?
Date: Tue, 21 Feb 2006 23:29:30 -0500
kanchy kang wrote:
> Hi,all
> as we know, we can override the operator of one object(for example
__eq__).
> my question is, how to override the basic o
;To: python-list@python.org
>Subject: Re: May i customize basic operator (such as 1==3)?
>Date: Wed, 22 Feb 2006 04:06:34 GMT
>
>I believe you are asking for a side effect from the "==" operator.
>
>Add print statements to the __eq__ method.
>
>"kanchy kang"
Thank you for your suggestions!
From: Steve Holden <[EMAIL PROTECTED]>
To: kanchy kang <[EMAIL PROTECTED]>
CC: python-list@python.org
Subject: Re: May i customize basic operator (such as 1==3)?
Date: Wed, 22 Feb 2006 01:44:26 -0500
kanchy kang wrote:
many people write test cases
Is there any improvement version for standard unittest module?
for example, output log information as files.
>From: Kent Johnson <[EMAIL PROTECTED]>
>To: python-list@python.org
>Subject: Re: May i customize basic operator (such as 1==3)?
>Date: Wed, 22 Feb 2006 06:07:35 -0500
>
>Thomas Heller wr
Is there any reviews/remarks on these frameworks?
nose, OOBTest,testosterone, py.test, Sancho.
From: Robert Kern <[EMAIL PROTECTED]>
To: python-list@python.org
Subject: Re: May i customize basic operator (such as 1==3)?
Date: Wed, 22 Feb 2006 19:22:00 -0600
kanchy kang wrote:
> Is
i browsed the following frameworks briefly: nose, OOBTest,
testosterone, py.test, Sancho ... and found out they do support imediate
screen-output only.
_
Dont just search. Find. Check out the new MSN Search!
http://search.msn.cl
ng...sometimes the previous log
information would be useful.
...hehe...
best regards.
>From: Benji York <[EMAIL PROTECTED]>
>To: kanchy kang <[EMAIL PROTECTED]>
>CC: python-list@python.org
>Subject: Re: why don't many test frameworks support file-output?
>Date: Th
PROTECTED]>
To: python-list@python.org
Subject: Re: why don't many test frameworks support file-output?
Date: Fri, 24 Feb 2006 07:43:20 -0800
kanchy kang wrote:
>
> I don't think redirecting stdout to a file is a good resolution.
Nobody is suggesting:
python program.py &g