May i customize basic operator (such as 1==3)?

2006-02-21 Thread 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

Re: May i customize basic operator (such as 1==3)?

2006-02-21 Thread kanchy kang
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

Re: May i customize basic operator (such as 1==3)?

2006-02-21 Thread kanchy kang
;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"

Re: May i customize basic operator (such as 1==3)?

2006-02-21 Thread 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

Re: May i customize basic operator (such as 1==3)?

2006-02-22 Thread kanchy kang
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

Re: May i customize basic operator (such as 1==3)?

2006-02-22 Thread kanchy kang
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

why don't many test frameworks support file-output?

2006-02-22 Thread kanchy kang
i browsed the following frameworks briefly: nose, OOBTest, testosterone, py.test, Sancho ... and found out they do support imediate screen-output only. _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.cl

Re: why don't many test frameworks support file-output?

2006-02-23 Thread kanchy kang
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

Re: why don't many test frameworks support file-output?

2006-02-24 Thread kanchy kang
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