On Fri, May 8, 2009 at 1:09 PM, Benjamin Peterson <benjamin@python.org> wrote:
I've know hit __enter__ and __exit__. The compiler
generates LOAD_ATTR instructions for these, so it uses the normal
lookup. The only way I can see to fix this is add a new opcode which
uses _PyObject_LookupSpecial, but I don't think we really care this
much. Opinions?

Why does this problem arise only with __enter__ and __exit__?
--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC