[pypy-dev] sys._getframe(1).f_locals is very slow on PyPy 1.8
Makoto Kuwata
kwa at kuwata-lab.com
Sun May 27 14:40:10 CEST 2012
On Sun, May 27, 2012 at 9:31 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
> My point is mostly that style-wise the design decision that led you to "I
> need to inspect the callers variables" was probably not a very good one.
> It's very tempting to use black magic, because writing explicit passing of
> arguments is too verbose, but remember that explicit is always better than
> implicit. I won't try to convince you any more - it's more about style than
> about what can or cannot be made fast on pypy.
Main purpose to access to caller's local variables is to hide
implementation details of template engine from users.
'Explicit vs. Implicit' is not the point at all.
--
regards,
makoto kuwata
More information about the pypy-dev
mailing list