Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Andr=E9_Roberge?= Newsgroups: comp.lang.python Subject: Puzzled by FiPy's use of "==" Date: Mon, 26 Mar 2012 04:47:13 -0700 (PDT) Organization: http://groups.google.com Lines: 13 Message-ID: <24963904.2261.1332762433787.JavaMail.geo-discussion-forums@vbbfw10> NNTP-Posting-Host: 71.7.238.125 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1332763381 12358 127.0.0.1 (26 Mar 2012 12:03:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Mar 2012 12:03:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.7.238.125; posting-account=K8oj0goAAACHoU7y4Jdj9H1l2fDaSGZk User-Agent: G2/1.0 Xref: csiph.com comp.lang.python:22178 In FiPy (a finite volume PDE solver), equations are "magically" set up as= =20 eqX =3D TransientTerm() =3D=3D ExplicitDiffusionTerm(coeff=3DD) and solved via eqX.solve(...) How can eqX be anything than True or False?... This must be via a redefini= tion of "=3D=3D" but I can't see how that is done. I did look at many of t= he source files, thinking that it must be via a redefinition of "__eq__" so= mewhere but with no luck. Any pointers would be appreciated.