Jens Theisen wrote: > What do you do when you want to no if a certain method or function is > actually used from somewhere, say "foobar", it a language which allows > (and even encourages) that it could be called by: > > getattr(obj, "foo" + "bar")()
No. The recommended way to do it is: obj.foobar() > There is no systematic way to find this call. > > In C++, just commend out the definition and the compiler will tell you. In such a case I normally just grep for "foobar". I did so (and I'll do so) in C/C++, Python, and any other language. Any programming language allows you to do strange/stupid stuff. But none of them encourages it. So I can't see your point in any way. Greets, Volker -- Volker Grabsch ---<<(())>>--- \frac{\left|\vartheta_0\times\{\ell,\kappa\in\Re\}\right|}{\sqrt [G]{-\Gamma(\alpha)\cdot\mathcal{B}^{\left[\oint\!c_\hbar\right]}}} -- http://mail.python.org/mailman/listinfo/python-list