Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.048 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'pointers': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.15; 'andr\xe9': 0.16; 'enigma': 0.16; 'equations': 0.16; 'kern': 0.16; 'redefinition': 0.16; 'underlying': 0.16; 'robert': 0.18; 'missed': 0.18; 'wrote:': 0.21; 'root': 0.22; 'header:In-Reply- To:1': 0.22; 'header:User-Agent:1': 0.23; 'appreciated.': 0.24; 'cc:no real name:2**0': 0.26; 'cc:addr:python.org': 0.27; 'looked': 0.27; 'somewhere': 0.27; 'monday,': 0.27; 'pm,': 0.28; 'that.': 0.28; 'url:terms': 0.29; 'class': 0.29; 'done.': 0.30; 'cc:2**0': 0.31; 'source': 0.31; 'received:209.85': 0.32; 'received:google.com': 0.32; 'thanks!': 0.32; 'received:209': 0.35; 'but': 0.36; 'url:org': 0.36; 'base': 0.39; 'from:charset:iso-8859-1': 0.39; "can't": 0.39; 'how': 0.40; 'files,': 0.63; 'our': 0.64; 'world': 0.65; 'march': 0.67; 'believe': 0.67; '2012': 0.69; '12:47': 0.84; 'solved': 0.84; 'terrible': 0.84; 'eco': 0.91 Newsgroups: comp.lang.python Date: Mon, 26 Mar 2012 05:21:58 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.7.238.125; posting-account=K8oj0goAAACHoU7y4Jdj9H1l2fDaSGZk References: <24963904.2261.1332762433787.JavaMail.geo-discussion-forums@vbbfw10> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: Puzzled by FiPy's use of "==" From: =?ISO-8859-1?Q?Andr=E9_Roberge?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332764527 news.xs4all.nl 6922 [2001:888:2000:d::a6]:55798 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22183 On Monday, 26 March 2012 09:16:07 UTC-3, Robert Kern wrote: > On 3/26/12 12:47 PM, Andr=E9 Roberge wrote: > > In FiPy (a finite volume PDE solver), equations are "magically" set up = as > > > > 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 rede= finition of "=3D=3D" but I can't see how that is done. I did look at many = of the source files, thinking that it must be via a redefinition of "__eq__= " somewhere but with no luck. Any pointers would be appreciated. >=20 > It's in the root base class Term: >=20 > http://matforge.org/fipy/browser/trunk/fipy/terms/term.py#L374 >=20 I thought I looked at terms.py ... but I must have missed that. Thanks! > --=20 > Robert Kern >=20 > "I have come to believe that the whole world is an enigma, a harmless eni= gma > that is made terrible by our own mad attempt to interpret it as though = it had > an underlying truth." > -- Umberto Eco