Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22178
| From | André Roberge <andre.roberge@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Puzzled by FiPy's use of "==" |
| Date | 2012-03-26 04:47 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <24963904.2261.1332762433787.JavaMail.geo-discussion-forums@vbbfw10> (permalink) |
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.
Back to comp.lang.python | Previous | Next — 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