Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22183
| 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 | <andre.roberge@gmail.com> |
| 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 | <mailman.996.1332764185.3037.python-list@python.org> |
| 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> <mailman.996.1332764185.3037.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| MIME-Version | 1.0 |
| Subject | Re: Puzzled by FiPy's use of "==" |
| From | André Roberge <andre.roberge@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.997.1332764527.3037.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Monday, 26 March 2012 09:16:07 UTC-3, Robert Kern wrote: > On 3/26/12 12:47 PM, André Roberge wrote: > > In FiPy (a finite volume PDE solver), equations are "magically" set up as > > > > eqX = TransientTerm() == ExplicitDiffusionTerm(coeff=D) > > > > and solved via > > > > eqX.solve(...) > > > > How can eqX be anything than True or False?... This must be via a redefinition of "==" 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. > > It's in the root base class Term: > > http://matforge.org/fipy/browser/trunk/fipy/terms/term.py#L374 > I thought I looked at terms.py ... but I must have missed that. Thanks! > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless enigma > that is made terrible by our own mad attempt to interpret it as though it had > an underlying truth." > -- Umberto Eco
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Puzzled by FiPy's use of "==" André Roberge <andre.roberge@gmail.com> - 2012-03-26 04:47 -0700
Re: Puzzled by FiPy's use of "==" Robert Kern <robert.kern@gmail.com> - 2012-03-26 13:16 +0100
Re: Puzzled by FiPy's use of "==" André Roberge <andre.roberge@gmail.com> - 2012-03-26 05:21 -0700
Re: Puzzled by FiPy's use of "==" André Roberge <andre.roberge@gmail.com> - 2012-03-26 05:21 -0700
csiph-web