Hi Timothy,

On Mon, Feb 13, 2012 at 15:18, Timothy Baldridge <tbaldri...@gmail.com> wrote:
> Now in CPython I can simply ovewrite __builtins__.__import__ with a
> new function that adds additional functionality to __import__.
> However, in PyPy we can't change __builtins__.

Why not?

You're probably just confused about __builtin__ versus __builtins__.
Don't use the latter, even in CPython, because it only works half of
the time.  It is documented as an internal detail.  Always do "import
__builtin__" instead.


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to